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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1084
RA = 29.4353, Dec = -46.2431
tmin = 520300801, tmax = 520560001
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='962255', job_status='RUN', time_executed='2021-08-14 22:57:34.107473', time_epoch_executed='1629007054.11' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/962255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/962255/ft1_4FGL_J0157.7-4614_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/962255/ft2_4FGL_J0157.7-4614_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/962255/ft1_4FGL_J0157.7-4614_daily_bin1084.fits outfile=/scratch/kocevski/962255/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1084.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=520300801.0 tmax=520560001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.91
user 5.89
sys 0.98

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/962255/ft2_4FGL_J0157.7-4614_daily_bin1084.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/962255/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/962255/ft1_filtered_4FGL_J0157.7-4614_daily_bin1084.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.28
user 0.34
sys 0.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/962255/ft1_filtered_4FGL_J0157.7-4614_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/962255/ft2_4FGL_J0157.7-4614_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/962255/ltcube_520300801_520560001_4FGL_J0157.7-4614_daily_bin1084.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/962255/ft2_4FGL_J0157.7-4614_daily_bin1084.fits
.....................!
real 14.41
user 13.14
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/962255/ft1_filtered_4FGL_J0157.7-4614_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/962255/ft2_4FGL_J0157.7-4614_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/962255/ltcube_520300801_520560001_4FGL_J0157.7-4614_daily_bin1084.fits outfile=/scratch/kocevski/962255/expmap_520300801_520560001_4FGL_J0157.7-4614_daily_bin1084.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/962255/ltcube_520300801_520560001_4FGL_J0157.7-4614_daily_bin1084.fits
.....................!
real 192.51
user 185.83
sys 6.14

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/962255/ft1_filtered_4FGL_J0157.7-4614_daily_bin1084.fits scfile=/scratch/kocevski/962255/ft2_4FGL_J0157.7-4614_daily_bin1084.fits outfile=/scratch/kocevski/962255/cmap_520300801_520560001_4FGL_J0157.7-4614_daily_bin1084.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.26
user 0.38
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/962255/ft1_filtered_4FGL_J0157.7-4614_daily_bin1084.fits scfile=/scratch/kocevski/962255/ft2_4FGL_J0157.7-4614_daily_bin1084.fits outfile=/scratch/kocevski/962255/cmap_HighResolution_520300801_520560001_4FGL_J0157.7-4614_daily_bin1084.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.27
user 0.39
sys 0.87

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/962255/ft1_filtered_4FGL_J0157.7-4614_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/962255/ft2_4FGL_J0157.7-4614_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/962255/Model_4FGL_J0157.7-4614_daily_bin1084.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/962255/ft1_filtered_4FGL_J0157.7-4614_daily_bin1084.fits.....................!
real 96.47
user 94.05
sys 2.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.963       1.0000         .10000E-03   10000.    
     3 'norm      '    .12826E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.185       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2947       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      '    .58024E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.540       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9874       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0546       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14818E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14540E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.001       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6998       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .77089       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89730       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=   4920.900     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2225 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.574       -.11336E-05** at limit **
   2  Prefactor     10.955        22.624       -.97451E-05   -.36280E-04
   3  norm          .10001E-03    6.4889        .50777E-06** at limit **
   4  Prefactor     23.193        28.754        .90435E-05   -.94439E-05
   5  Prefactor     8.2955        5.1508        .90094E-06   -.19072E-03
   6  Prefactor     .10000E-03    1.5812       -.77577E-07** at limit **
   7  norm          .10000E-03    17.655       -.65910E-05** at limit **
   8  norm          .59500E-01    1.9564       -.48419E-06    .76469E-04
   9  Prefactor     .10000E-03    8.7308        .15522E-05** at limit **
  10  Prefactor     .10000E-03    19.853        .69396E-05** at limit **
  11  Prefactor     10.540        4.9354       -.33194E-06    .39576E-04
  12  norm          1.9875        1.1401       -.16289E-07   -.12164E-03
  13  Prefactor     6.0551        6.8000       -.92044E-07    .17788E-04
  14  Prefactor     .10000E-03    7.2917        .40105E-06** at limit **
  15  norm          .10001E-03    .73193       -.25691E-06** at limit **
  16  norm          .10000E-03    1.2143        .46105E-06** at limit **
  17  Prefactor     .10000E-03    3.2798        .67479E-07** at limit **
  18  Prefactor     70.990        62.172       -.12136E-04   -.42846E-04
  19  norm          2.6999        1.0869       -.18173E-07   -.43806E-04
  20  Normalizat    .77061        .16082        .96335E-06   -.12557E-03
  21  Prefactor     .89755        .17171        .51331E-06   -.44357E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.9545
  norm       = 0.000100005
  Prefactor  = 23.1934
  Prefactor  = 8.29547
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5403
  norm       = 1.98754
  Prefactor  = 6.05512
  Prefactor  = 0.0001
  norm       = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.9898
  norm       = 2.69995
  Normalizat = 0.770611
  Prefactor  = 0.897551
 **********
 **   18 **HESSE 
 **********

 FCN=   4920.900     FROM HESSE     STATUS=OK           323 CALLS     2548 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.955        22.753        .12100E-03   -1.5046    
   3  norm          .10001E-03    35.431        .34157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.193        28.871        .83189E-04   -1.4744    
   5  Prefactor     8.2955        5.1422        .11537E-03   -1.5132    
   6  Prefactor     .10000E-03    1.5824        .86139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    17.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .59500E-01    22.379        .18989E-02   -1.5659    
   9  Prefactor     .10000E-03    8.8877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.540        4.9456        .10107E-03   -1.5059    
  12  norm          1.9875        1.1395        .53543E-04   -1.5426    
  13  Prefactor     6.0551        6.7989        .16317E-03   -1.5216    
  14  Prefactor     .10000E-03    7.2975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    7.5519        .11630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.5670        .14861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2921        .12404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     70.990        61.953        .47641E-04   -1.4021    
  19  norm          2.6999        1.0860        .44493E-04   -1.5379    
  20  Normalizat    .77061        .18909        .22013E-03   -1.0117    
  21  Prefactor     .89755        .20242        .23041E-03   -.96227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56389e-09
Minuit parameter uncertainties:
  1  1.52616e-05
  2  22.7708
  3  0.000879066
  4  28.8885
  5  5.14248
  6  1.37801e-06
  7  4.98421e-07
  8  2.30677
  9  5.00376e-05
  10  8.86189e-06
  11  4.94575
  12  1.13952
  13  6.7998
  14  5.49306e-07
  15  0.000519227
  16  5.92863e-05
  17  2.08651e-06
  18  62.0098
  19  1.08598
  20  0.18925
  21  0.202592
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  5.950e-02  2.307e+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:  8.976e-01  2.026e-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:  7.706e-01  1.892e-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: 4.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/962255/likelihoodResults_520300801_520560001_4FGL_J0157.7-4614_daily_bin1084.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4920.90020465
delta logL = 1.68757105712e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4920.90015855
delta logL = 4.77865223729e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61836E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3104       1.0000          .0000       5.0000    
     3 'Normalizat'    .77062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89752       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=   4920.900     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      357 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61836E-01    38.187        .52572E-01    .41286E-03
   2  alpha         2.3104        3.3050        .41302        .11865E-04
   3  Normalizat    .77059        .17771E-01    .43226E-01    .11936E-04
   4  Prefactor     .89754        .20068E-01    .44973E-01    .78432E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0618358
  alpha      = 2.31037
  Normalizat = 0.770591
  Prefactor  = 0.897544
 **********
 **   18 **HESSE 
 **********

 FCN=   4920.900     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      392 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61836E-01    6640.4        .18589E-02   -1.5658    
   2  alpha         2.3104        3.3490        .16521       -.75926E-01
   3  Normalizat    .77059        .85584E-01    .22013E-03   -1.0117    
   4  Prefactor     .89754        .11317        .23041E-03   -.96227    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.34887e-06
Minuit parameter uncertainties:
  1  30.431
  2  95.9201
  3  0.085599
  4  0.1132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/962255': 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): 102
logL (Free Index) = 4920.90015854
delta logL = 4.77958419651e-05

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  6.184e-02  3.043e+01  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.310e+00  9.592e+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:  8.975e-01  1.132e-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:  7.706e-01  8.560e-02  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/962255/cmap_HighResolution_520300801_520560001_4FGL_J0157.7-4614_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-05', job_status='DONE', photon_flux_upper_limit='4.17e-08', time_completed='2021-08-14 23:08:33.270308', job_id='962255', GAL2='0.90', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1629007713.27', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.78e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1084' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:08:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 962255: <4FGL_J0157.7-4614_daily_bin1084> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1084 29.4353 -46.2431 520300801 520560001 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 :                                   664.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            786 sec.

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

