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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1040
RA = 29.4353, Dec = -46.2431
tmin = 508896001, tmax = 509155201
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='962188', job_status='RUN', time_executed='2021-08-14 22:56:30.955447', time_epoch_executed='1629006990.96' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/962188

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/962188/ft1_4FGL_J0157.7-4614_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/962188/ft2_4FGL_J0157.7-4614_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/962188/ft1_4FGL_J0157.7-4614_daily_bin1040.fits outfile=/scratch/kocevski/962188/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1040.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=508896001.0 tmax=509155201.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 4.41
user 3.46
sys 0.89

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/962188/ft1_filtered_4FGL_J0157.7-4614_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/962188/ft2_4FGL_J0157.7-4614_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/962188/ltcube_508896001_509155201_4FGL_J0157.7-4614_daily_bin1040.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/962188/ft2_4FGL_J0157.7-4614_daily_bin1040.fits
.....................!
real 14.62
user 13.46
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/962188/ft1_filtered_4FGL_J0157.7-4614_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/962188/ft2_4FGL_J0157.7-4614_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/962188/ltcube_508896001_509155201_4FGL_J0157.7-4614_daily_bin1040.fits outfile=/scratch/kocevski/962188/expmap_508896001_509155201_4FGL_J0157.7-4614_daily_bin1040.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/962188/ltcube_508896001_509155201_4FGL_J0157.7-4614_daily_bin1040.fits
.....................!
real 193.33
user 186.41
sys 6.40

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/962188/ft1_filtered_4FGL_J0157.7-4614_daily_bin1040.fits scfile=/scratch/kocevski/962188/ft2_4FGL_J0157.7-4614_daily_bin1040.fits outfile=/scratch/kocevski/962188/cmap_508896001_509155201_4FGL_J0157.7-4614_daily_bin1040.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.24
user 0.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/962188/ft1_filtered_4FGL_J0157.7-4614_daily_bin1040.fits scfile=/scratch/kocevski/962188/ft2_4FGL_J0157.7-4614_daily_bin1040.fits outfile=/scratch/kocevski/962188/cmap_HighResolution_508896001_509155201_4FGL_J0157.7-4614_daily_bin1040.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.22
user 0.39
sys 0.82

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/962188/ft1_filtered_4FGL_J0157.7-4614_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/962188/ft2_4FGL_J0157.7-4614_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/962188/Model_4FGL_J0157.7-4614_daily_bin1040.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/962188/ft1_filtered_4FGL_J0157.7-4614_daily_bin1040.fits.....................!
real 86.70
user 84.24
sys 2.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .47392E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8655       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0207       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .94719       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3084       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.3905       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.490       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6108       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2987       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99167       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96007       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=   4315.541     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     1891 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.888        .24843E-05** at limit **
   2  Prefactor     .10000E-03    24.000       -.25345E-05** at limit **
   3  norm          .10019E-03    34.289       -.10713E-04** at limit **
   4  Prefactor     .10000E-03    26.973        .47508E-05** at limit **
   5  Prefactor     5.8655        4.0349        .12522E-06   -.63192E-06
   6  Prefactor     1.0181        8.2219        .18646E-06    .53969E-04
   7  norm          .10000E-03    20.386       -.49353E-05** at limit **
   8  norm          .94943        5.8818        .39977E-06    .15442E-03
   9  Prefactor     2.3055        27.730        .21537E-05    .48587E-04
  10  Prefactor     .10000E-03    15.043        .23890E-05** at limit **
  11  Prefactor     .10000E-03    4.5832       -.66410E-08** at limit **
  12  norm          7.3910        2.3570       -.46200E-08   -.16600E-04
  13  Prefactor     36.486        19.872        .68436E-06    .17123E-03
  14  Prefactor     .10000E-03    12.175       -.15859E-05** at limit **
  15  norm          .10000E-03    .70714       -.94802E-08** at limit **
  16  norm          1.6108        3.0836        .24506E-06    .16308E-03
  17  Prefactor     4.2999        8.3594        .20558E-05    .91765E-03
  18  Prefactor     .10000E-03    16.937       -.61003E-06** at limit **
  19  norm          .10000E-03    .47251        .73325E-07** at limit **
  20  Normalizat    .99164        .19868       -.11084E-05   -.48318E-04
  21  Prefactor     .96009        .20745       -.45175E-06   -.11782E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.000100187
  Prefactor  = 0.000100004
  Prefactor  = 5.86552
  Prefactor  = 1.01808
  norm       = 0.000100005
  norm       = 0.949435
  Prefactor  = 2.30555
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.39105
  Prefactor  = 36.4859
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.61081
  Prefactor  = 4.29987
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.991643
  Prefactor  = 0.960093
 **********
 **   18 **HESSE 
 **********

 FCN=   4315.541     FROM HESSE     STATUS=OK           317 CALLS     2208 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10019E-03    49.998        .39693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8655        4.0324        .10610E-03   -1.5224    
   6  Prefactor     1.0181        28.509        .32046E-02   -1.5506    
   7  norm          .10000E-03    20.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .94943        5.5470        .28149E-03   -1.5513    
   9  Prefactor     2.3055        27.762        .27006E-03   -1.5404    
  10  Prefactor     .10000E-03    15.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7958        .27429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.3910        2.3492        .53567E-04   -1.5164    
  13  Prefactor     36.486        19.873        .66345E-04   -1.4499    
  14  Prefactor     .10000E-03    12.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .71465        .53935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6108        3.0638        .15344E-03   -1.5454    
  17  Prefactor     4.2999        9.0505        .97153E-03   -1.5293    
  18  Prefactor     .10000E-03    16.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .60594        .87534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .99164        .23081        .23069E-03   -.93311    
  21  Prefactor     .96009        .24392        .25304E-03   -.94072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.168e-09
Minuit parameter uncertainties:
  1  0.000267492
  2  0.000276651
  3  0.0061263
  4  0.000666971
  5  4.03259
  6  10.7801
  7  0.000618069
  8  4.59018
  9  16.0098
  10  0.00025607
  11  6.98586e-06
  12  2.3492
  13  19.877
  14  0.000183124
  15  6.80961e-07
  16  3.0641
  17  9.05341
  18  6.82229e-05
  19  1.02334e-06
  20  0.231043
  21  0.244202
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  9.494e-01  4.590e+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:  9.601e-01  2.442e-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.916e-01  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 29.435 -46.243
Photon Flux Upper Limit: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/962188/likelihoodResults_508896001_509155201_4FGL_J0157.7-4614_daily_bin1040.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) = 4315.41456852
delta logL = 0.126919638333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4315.39840884
delta logL = 0.143079317423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5396       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2509       1.0000          .0000       5.0000    
     3 'Normalizat'    .99940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95087       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=   4315.398     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5316        3.2644        .85914E-02    .42261E-03
   2  alpha         1.2460        1.1628        .50000       -.30023E-04
   3  Normalizat    .99929        .19045        .46159E-01    .25314E-04
   4  Prefactor     .95076        .20712        .45650E-01   -.11424E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.53161
  alpha      = 1.24598
  Normalizat = 0.999292
  Prefactor  = 0.950763
 **********
 **   18 **HESSE 
 **********

 FCN=   4315.398     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5316        3.4980        .16733E-03   -1.5460    
   2  alpha         1.2460        1.3220        .36083E-01   -.52546    
   3  Normalizat    .99929        .22403        .22989E-03   -.93054    
   4  Prefactor     .95076        .24373        .25404E-03   -.94389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56596e-11
Minuit parameter uncertainties:
  1  3.49849
  2  1.42235
  3  0.224241
  4  0.24401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/962188': 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) = 4315.39840109
delta logL = 0.143087072035

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.532e+00  3.498e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.246e+00  1.422e+00  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.508e-01  2.440e-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.993e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/962188/cmap_HighResolution_508896001_509155201_4FGL_J0157.7-4614_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-08-14 23:06:17.400704', job_id='962188', GAL2='0.95', fit_tolerance='1e-08', EG2='1.00', EG='0.99', time_epoch_completed='1629007577.4', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.43e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1040' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:06:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 962188: <4FGL_J0157.7-4614_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1040 29.4353 -46.2431 508896001 509155201 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 :                                   593.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            654 sec.

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

