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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1548
RA = 29.4353, Dec = -46.2431
tmin = 640569601, tmax = 640828801
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='964344', job_status='RUN', time_executed='2021-08-14 23:04:25.690043', time_epoch_executed='1629007465.69' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964344

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964344/ft1_4FGL_J0157.7-4614_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964344/ft2_4FGL_J0157.7-4614_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964344/ft1_4FGL_J0157.7-4614_daily_bin1548.fits outfile=/scratch/kocevski/964344/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1548.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=640569601.0 tmax=640828801.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.71
user 2.79
sys 0.86

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964344/ft2_4FGL_J0157.7-4614_daily_bin1548.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/964344/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1548.fits evtable="EVENTS" outfile="/scratch/kocevski/964344/ft1_filtered_4FGL_J0157.7-4614_daily_bin1548.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.23
user 0.33
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964344/ft1_filtered_4FGL_J0157.7-4614_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/964344/ft2_4FGL_J0157.7-4614_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/964344/ltcube_640569601_640828801_4FGL_J0157.7-4614_daily_bin1548.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/964344/ft2_4FGL_J0157.7-4614_daily_bin1548.fits
.....................!
real 14.98
user 13.71
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964344/ft1_filtered_4FGL_J0157.7-4614_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/964344/ft2_4FGL_J0157.7-4614_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/964344/ltcube_640569601_640828801_4FGL_J0157.7-4614_daily_bin1548.fits outfile=/scratch/kocevski/964344/expmap_640569601_640828801_4FGL_J0157.7-4614_daily_bin1548.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/964344/ltcube_640569601_640828801_4FGL_J0157.7-4614_daily_bin1548.fits
.....................!
real 192.59
user 185.48
sys 6.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/964344/ft1_filtered_4FGL_J0157.7-4614_daily_bin1548.fits scfile=/scratch/kocevski/964344/ft2_4FGL_J0157.7-4614_daily_bin1548.fits outfile=/scratch/kocevski/964344/cmap_640569601_640828801_4FGL_J0157.7-4614_daily_bin1548.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=29.4353 yref=-46.2431 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.22
user 0.37
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964344/ft1_filtered_4FGL_J0157.7-4614_daily_bin1548.fits scfile=/scratch/kocevski/964344/ft2_4FGL_J0157.7-4614_daily_bin1548.fits outfile=/scratch/kocevski/964344/cmap_HighResolution_640569601_640828801_4FGL_J0157.7-4614_daily_bin1548.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=29.4353 yref=-46.2431 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.23
user 0.37
sys 0.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964344/ft1_filtered_4FGL_J0157.7-4614_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/964344/ft2_4FGL_J0157.7-4614_daily_bin1548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964344/Model_4FGL_J0157.7-4614_daily_bin1548.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/964344/ft1_filtered_4FGL_J0157.7-4614_daily_bin1548.fits....................!
real 144.09
user 141.46
sys 2.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84491E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.2872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0258       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    20.114       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2794       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.281       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5134       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.711       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7660       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9261       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4440       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91013       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1227       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=   7729.476     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2191 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3668       -.31199E-06** at limit **
   2  Prefactor     .10000E-03    13.710       -.67342E-07** at limit **
   3  norm          4.2877        7.1766       -.72251E-06   -.28357E-03
   4  Prefactor     .10000E-03    13.928        .21947E-05** at limit **
   5  Prefactor     2.0260        3.1462       -.53238E-06   -.92961E-03
   6  Prefactor     .10000E-03    4.5458       -.10240E-06** at limit **
   7  norm          20.095        38.135       -.30337E-04    .21116E-06
   8  norm          5.2803        3.5834       -.13906E-06   -.19528E-03
   9  Prefactor     21.280        12.199        .52775E-07   -.97071E-05
  10  Prefactor     .10000E-03    11.976        .27372E-05** at limit **
  11  Prefactor     2.5136        2.1892        .21055E-06    .16855E-03
  12  norm          .10000E-03    .22649       -.55403E-08** at limit **
  13  Prefactor     13.714        11.611       -.27190E-05    .15589E-03
  14  Prefactor     .10000E-03    12.907       -.45897E-05** at limit **
  15  norm          .10000E-03    .58022       -.80494E-07** at limit **
  16  norm          3.7662        3.2402       -.26778E-06   -.51440E-03
  17  Prefactor     .10000E-03    3.6843        .13962E-06** at limit **
  18  Prefactor     6.9247        37.988       -.35758E-05   -.85644E-05
  19  norm          1.4440        .82519       -.12380E-08   -.12266E-03
  20  Normalizat    .91023        .14435        .22372E-06    .90350E-04
  21  Prefactor     1.1226        .15763        .14979E-05   -.31569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.28768
  Prefactor  = 0.0001
  Prefactor  = 2.02603
  Prefactor  = 0.0001
  norm       = 20.0949
  norm       = 5.28028
  Prefactor  = 21.2803
  Prefactor  = 0.0001
  Prefactor  = 2.51359
  norm       = 0.0001
  Prefactor  = 13.7141
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 3.76618
  Prefactor  = 0.0001
  Prefactor  = 6.92472
  norm       = 1.44397
  Normalizat = 0.910229
  Prefactor  = 1.12261
 **********
 **   18 **HESSE 
 **********

 FCN=   7729.476     FROM HESSE     STATUS=OK           323 CALLS     2514 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.942        .52306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2877        7.1851        .19457E-03   -1.5294    
   4  Prefactor     .10000E-03    14.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0260        3.1490        .18724E-03   -1.5423    
   6  Prefactor     .10000E-03    4.7091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          20.095        38.114        .89306E-04   -1.4811    
   8  norm          5.2803        3.5773        .13260E-03   -1.5248    
   9  Prefactor     21.280        12.214        .86826E-04   -1.4785    
  10  Prefactor     .10000E-03    12.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5136        2.1954        .11809E-03   -1.5391    
  12  norm          .10000E-03    .22937        .40828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.714        11.570        .10817E-03   -1.4967    
  14  Prefactor     .10000E-03    12.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .59786        .13074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7662        3.2377        .13904E-03   -1.5320    
  17  Prefactor     .10000E-03    3.7020        .16474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.9247        37.893        .15244E-03   -1.5182    
  19  norm          1.4440        .81752        .58086E-04   -1.5468    
  20  Normalizat    .91023        .17264        .23568E-03   -.96102    
  21  Prefactor     1.1226        .18854        .24033E-03   -.88747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07704e-10
Minuit parameter uncertainties:
  1  0.000204074
  2  2.01444e-05
  3  7.18657
  4  1.63255e-05
  5  3.14922
  6  1.54634e-06
  7  38.1598
  8  3.57741
  9  12.2151
  10  2.74382e-06
  11  2.1955
  12  4.65211e-07
  13  11.5719
  14  0.000192145
  15  1.56335e-06
  16  3.23782
  17  7.36129e-06
  18  32.4288
  19  0.817524
  20  0.172744
  21  0.188656
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  5.280e+00  3.577e+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.123e+00  1.887e-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:  9.102e-01  1.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.32
Ra Dec: 29.435 -46.243
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 1.75e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 6.92e-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) = 7729.14348349
delta logL = 0.332475422553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7729.11858006
delta logL = 0.357378852371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1601       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7596       1.0000          .0000       5.0000    
     3 'Normalizat'    .91854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1164       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.

 FCN=   7729.119     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1601        11.564        .40438E-02   -.27298E-02
   2  alpha         1.7599        1.3167        .43703        .59695E-05
   3  Normalizat    .91854        .14275        .45138E-01    .35306E-04
   4  Prefactor     1.1164        .16009        .54474E-01   -.21982E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.16012
  alpha      = 1.75995
  Normalizat = 0.91854
  Prefactor  = 1.11645
 **********
 **   18 **HESSE 
 **********

 FCN=   7729.119     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1601        4.1062        .14131E-03   -1.5212    
   2  alpha         1.7599        .54609        .17667E-01   -.30052    
   3  Normalizat    .91854        .16599        .23470E-03   -.95812    
   4  Prefactor     1.1164        .18694        .24086E-03   -.88943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15419e-09
Minuit parameter uncertainties:
  1  4.10636
  2  0.550962
  3  0.166078
  4  0.187049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964344': 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) = 7729.11857986
delta logL = 0.35737905141

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  6.160e+00  4.106e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.760e+00  5.510e-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.116e+00  1.870e-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:  9.185e-01  1.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 29.435 -46.243
Photon Index (Free Index): 1.76 +/- 0.55
Photon Flux (Free Index): 1.96e-08 +/- 1.52e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.02e-05

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/964344/cmap_HighResolution_640569601_640828801_4FGL_J0157.7-4614_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='1.35e-05', photon_flux_error='1.75e-08', dlogl='3.57e-01', energy_flux='1.02e-05', photon_flux2='1.96e-08', job_status='DONE', time_completed='2021-08-14 23:16:51.821365', photon_index_error2='0.55', photon_index2='1.76', ts='4.32', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.02e-05', EG='0.91', time_epoch_completed='1629008211.82', return_code='0', job_id='964344', GAL2='1.12', EG2='0.92', return_code2='0', energy_flux_error='6.92e-06', photon_flux_error2='1.52e-08', ts2='5.04', photon_index='2.24' WHERE bin_id='1548' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:16:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 964344: <4FGL_J0157.7-4614_daily_bin1548> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1548 29.4353 -46.2431 640569601 640828801 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 :                                   737.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            960 sec.

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

