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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1119
RA = 29.4353, Dec = -46.2431
tmin = 529372801, tmax = 529632001
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='962309', job_status='RUN', time_executed='2021-08-14 22:58:21.527581', time_epoch_executed='1629007101.53' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/962309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/962309/ft1_4FGL_J0157.7-4614_daily_bin1119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/962309/ft2_4FGL_J0157.7-4614_daily_bin1119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/962309/ft1_4FGL_J0157.7-4614_daily_bin1119.fits outfile=/scratch/kocevski/962309/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1119.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=529372801.0 tmax=529632001.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 7.03
user 3.32
sys 3.67

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/962309/ft1_filtered_4FGL_J0157.7-4614_daily_bin1119.fits" evtable="EVENTS" scfile=/scratch/kocevski/962309/ft2_4FGL_J0157.7-4614_daily_bin1119.fits sctable="SC_DATA" outfile=/scratch/kocevski/962309/ltcube_529372801_529632001_4FGL_J0157.7-4614_daily_bin1119.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/962309/ft2_4FGL_J0157.7-4614_daily_bin1119.fits
.....................!
real 18.33
user 13.86
sys 4.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/962309/ft1_filtered_4FGL_J0157.7-4614_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/962309/ft2_4FGL_J0157.7-4614_daily_bin1119.fits sctable="SC_DATA" expcube=/scratch/kocevski/962309/ltcube_529372801_529632001_4FGL_J0157.7-4614_daily_bin1119.fits outfile=/scratch/kocevski/962309/expmap_529372801_529632001_4FGL_J0157.7-4614_daily_bin1119.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/962309/ltcube_529372801_529632001_4FGL_J0157.7-4614_daily_bin1119.fits
.....................!
real 196.37
user 186.94
sys 8.95

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/962309/ft1_filtered_4FGL_J0157.7-4614_daily_bin1119.fits scfile=/scratch/kocevski/962309/ft2_4FGL_J0157.7-4614_daily_bin1119.fits outfile=/scratch/kocevski/962309/cmap_529372801_529632001_4FGL_J0157.7-4614_daily_bin1119.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.96
user 0.38
sys 3.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/962309/ft1_filtered_4FGL_J0157.7-4614_daily_bin1119.fits scfile=/scratch/kocevski/962309/ft2_4FGL_J0157.7-4614_daily_bin1119.fits outfile=/scratch/kocevski/962309/cmap_HighResolution_529372801_529632001_4FGL_J0157.7-4614_daily_bin1119.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.95
user 0.39
sys 3.53

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/962309/ft1_filtered_4FGL_J0157.7-4614_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/962309/ft2_4FGL_J0157.7-4614_daily_bin1119.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/962309/Model_4FGL_J0157.7-4614_daily_bin1119.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/962309/ft1_filtered_4FGL_J0157.7-4614_daily_bin1119.fits.....................!
real 120.99
user 114.66
sys 5.74

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.955       1.0000         .10000E-03   10000.    
     3 'norm      '    17.523       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7631       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.930       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4602       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.436       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11544E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13823       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7587       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    59.066       1.0000         .10000E-03   10000.    
    19 'norm      '    .41096       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .45540       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2381       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=   6234.964     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2235 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3500        .35722E-07** at limit **
   2  Prefactor     37.954        21.846        .33151E-06   -.10893E-04
   3  norm          17.522        8.8890       -.24839E-07    .84484E-05
   4  Prefactor     .10000E-03    3.9424        .27142E-06** at limit **
   5  Prefactor     .10000E-03    1.6751        .36984E-07** at limit **
   6  Prefactor     .10000E-03    2.2960       -.10799E-07** at limit **
   7  norm          .10000E-03    14.259        .93626E-07** at limit **
   8  norm          5.7627        5.0679       -.13478E-06    .54632E-05
   9  Prefactor     4.0181        5.3761        .13236E-05    .53017E-04
  10  Prefactor     28.926        28.261        .72853E-06   -.11589E-04
  11  Prefactor     3.4600        4.5893        .66905E-07    .18463E-04
  12  norm          2.0110        1.4547        .21239E-07    .63626E-04
  13  Prefactor     12.410        10.095       -.69396E-06   -.69019E-04
  14  Prefactor     .10000E-03    30.574        .22998E-05** at limit **
  15  norm          .13905        1.6929       -.10792E-05    .20513E-03
  16  norm          2.7591        2.4728       -.66540E-07   -.50693E-04
  17  Prefactor     .10000E-03    4.0000       -.16541E-06** at limit **
  18  Prefactor     59.053        51.381        .25463E-05   -.32055E-04
  19  norm          .41096        .69076        .29854E-06    .10097E-03
  20  Normalizat    .45540        .15316       -.48308E-06    .24691E-05
  21  Prefactor     1.2381        .16944       -.16343E-06   -.51434E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 37.9539
  norm       = 17.5224
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.76271
  Prefactor  = 4.01807
  Prefactor  = 28.9262
  Prefactor  = 3.46003
  norm       = 2.01101
  Prefactor  = 12.4104
  Prefactor  = 0.000100002
  norm       = 0.139054
  norm       = 2.75912
  Prefactor  = 0.0001
  Prefactor  = 59.0528
  norm       = 0.410957
  Normalizat = 0.455399
  Prefactor  = 1.23812
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.964     FROM HESSE     STATUS=OK           323 CALLS     2558 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.954        21.873        .65056E-04   -1.4475    
   3  norm          17.522        8.8866        .95678E-04   -1.4871    
   4  Prefactor     .10000E-03    3.9430        .15309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7443        .19946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3013        .11680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    14.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7627        5.0616        .13746E-03   -1.5228    
   9  Prefactor     4.0181        5.6868        .10059E-02   -1.5307    
  10  Prefactor     28.926        28.280        .74487E-04   -1.4632    
  11  Prefactor     3.4600        4.5563        .17670E-03   -1.5336    
  12  norm          2.0110        1.4363        .72024E-04   -1.5424    
  13  Prefactor     12.410        10.113        .11359E-03   -1.5003    
  14  Prefactor     .10000E-03    31.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .13905        3.0670        .16641E-02   -1.5633    
  16  norm          2.7591        2.4640        .11064E-03   -1.5376    
  17  Prefactor     .10000E-03    4.0096        .15403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     59.053        51.013        .52203E-04   -1.4170    
  19  norm          .41096        .70168        .21803E-03   -1.5580    
  20  Normalizat    .45540        .17273        .27913E-03   -1.1453    
  21  Prefactor     1.2381        .19338        .20494E-03   -.85166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17829e-10
Minuit parameter uncertainties:
  1  2.04119e-06
  2  21.8772
  3  8.88723
  4  2.43096e-06
  5  2.29297e-06
  6  6.3985e-07
  7  1.2647e-06
  8  5.06196
  9  5.68756
  10  28.2935
  11  4.55673
  12  1.43631
  13  10.1146
  14  0.000537224
  15  1.30571
  16  2.46408
  17  1.09908e-05
  18  51.0513
  19  0.701694
  20  0.172928
  21  0.193491
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  5.763e+00  5.062e+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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.238e+00  1.935e-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.554e-01  1.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.63
Ra Dec: 29.435 -46.243
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 2.48e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 9.79e-06

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) = 6234.87922588
delta logL = 0.0846236710368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6234.87298225
delta logL = 0.0908673077065

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3430       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5595       1.0000          .0000       5.0000    
     3 'Normalizat'    .44524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2441       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=   6234.873     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      237 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3428        4.2259        .12103E-03    .94241E-03
   2  alpha         2.5600        .73773        .15138E-01    .65280E-04
   3  Normalizat    .44523        .16470        .28202E-03   -.88926E-04
   4  Prefactor     1.2441        .19146        .20444E-03   -.15654E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.34279
  alpha      = 2.55997
  Normalizat = 0.445232
  Prefactor  = 1.24406
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.873     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3428        4.1155        .48413E-05   -1.5246    
   2  alpha         2.5600        .71842        .60554E-03    .23991E-01
   3  Normalizat    .44523        .16470        .11281E-04   -1.1503    
   4  Prefactor     1.2441        .19152        .40889E-04   -.84986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61694e-10
Minuit parameter uncertainties:
  1  4.11575
  2  0.728696
  3  0.164879
  4  0.191626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/962309': 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) = 6234.87298202
delta logL = 0.0908675374867

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  5.343e+00  4.116e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.560e+00  7.287e-01  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.244e+00  1.916e-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.452e-01  1.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.84
Ra Dec: 29.435 -46.243
Photon Index (Free Index): 2.56 +/- 0.73
Photon Flux (Free Index): 3.78e-08 +/- 3.35e-08
Energy Flux (Free Index): 1.14e-05 +/- 7.88e-06

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/962309/cmap_HighResolution_529372801_529632001_4FGL_J0157.7-4614_daily_bin1119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='1.14e-05', photon_flux_error='2.48e-08', dlogl='9.09e-02', energy_flux='1.11e-05', photon_flux2='3.78e-08', job_status='DONE', time_completed='2021-08-14 23:10:10.452167', photon_index_error2='0.73', photon_index2='2.56', ts='4.63', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='7.88e-06', EG='0.46', time_epoch_completed='1629007810.45', return_code='0', job_id='962309', GAL2='1.24', EG2='0.45', return_code2='0', energy_flux_error='9.79e-06', photon_flux_error2='3.35e-08', ts2='4.84', photon_index='2.24' WHERE bin_id='1119' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:10:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 962309: <4FGL_J0157.7-4614_daily_bin1119> in cluster <slac> Done

Job <4FGL_J0157.7-4614_daily_bin1119> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 14 22:55:31 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 22:56:28 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:56:28 2021
Terminated at Sat Aug 14 23:10:11 2021
Results reported at Sat Aug 14 23:10:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1119 29.4353 -46.2431 529372801 529632001 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 :                                   752.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            880 sec.

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

