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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1542
RA = 29.4353, Dec = -46.2431
tmin = 639014401, tmax = 639273601
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='964334', job_status='RUN', time_executed='2021-08-14 23:02:49.908795', time_epoch_executed='1629007369.91' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964334

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964334/ft1_4FGL_J0157.7-4614_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964334/ft2_4FGL_J0157.7-4614_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964334/ft1_4FGL_J0157.7-4614_daily_bin1542.fits outfile=/scratch/kocevski/964334/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1542.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=639014401.0 tmax=639273601.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 5.44
user 5.13
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964334/ft2_4FGL_J0157.7-4614_daily_bin1542.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/964334/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1542.fits evtable="EVENTS" outfile="/scratch/kocevski/964334/ft1_filtered_4FGL_J0157.7-4614_daily_bin1542.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 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964334/ft1_filtered_4FGL_J0157.7-4614_daily_bin1542.fits" evtable="EVENTS" scfile=/scratch/kocevski/964334/ft2_4FGL_J0157.7-4614_daily_bin1542.fits sctable="SC_DATA" outfile=/scratch/kocevski/964334/ltcube_639014401_639273601_4FGL_J0157.7-4614_daily_bin1542.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/964334/ft2_4FGL_J0157.7-4614_daily_bin1542.fits
.....................!
real 12.83
user 12.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964334/ft1_filtered_4FGL_J0157.7-4614_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/964334/ft2_4FGL_J0157.7-4614_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/964334/ltcube_639014401_639273601_4FGL_J0157.7-4614_daily_bin1542.fits outfile=/scratch/kocevski/964334/expmap_639014401_639273601_4FGL_J0157.7-4614_daily_bin1542.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/964334/ltcube_639014401_639273601_4FGL_J0157.7-4614_daily_bin1542.fits
.....................!
real 192.86
user 187.49
sys 4.67

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/964334/ft1_filtered_4FGL_J0157.7-4614_daily_bin1542.fits scfile=/scratch/kocevski/964334/ft2_4FGL_J0157.7-4614_daily_bin1542.fits outfile=/scratch/kocevski/964334/cmap_639014401_639273601_4FGL_J0157.7-4614_daily_bin1542.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 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964334/ft1_filtered_4FGL_J0157.7-4614_daily_bin1542.fits scfile=/scratch/kocevski/964334/ft2_4FGL_J0157.7-4614_daily_bin1542.fits outfile=/scratch/kocevski/964334/cmap_HighResolution_639014401_639273601_4FGL_J0157.7-4614_daily_bin1542.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 0.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964334/ft1_filtered_4FGL_J0157.7-4614_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/964334/ft2_4FGL_J0157.7-4614_daily_bin1542.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964334/Model_4FGL_J0157.7-4614_daily_bin1542.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/964334/ft1_filtered_4FGL_J0157.7-4614_daily_bin1542.fits.....................!
real 136.08
user 134.49
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15967E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.8485       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3169       1.0000         .10000E-03   10000.    
     7 'norm      '    36.217       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3217       1.0000         .10000E-03   10000.    
    12 'norm      '    .92351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12881E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.256       1.0000         .10000E-03   10000.    
    19 'norm      '    .33110E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88839       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98808       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=   7322.855     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2220 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9755       -.83283E-07** at limit **
   2  Prefactor     .10000E-03    6.7718       -.23499E-05** at limit **
   3  norm          8.8487        5.4679       -.15944E-07   -.85081E-05
   4  Prefactor     10.196        15.819        .10225E-05    .65183E-04
   5  Prefactor     .10000E-03    1.4086        .69971E-08** at limit **
   6  Prefactor     6.3159        3.7368        .70767E-06   -.19955E-02
   7  norm          36.218        36.468        .22327E-06    .11245E-04
   8  norm          .10000E-03    1.9333       -.16390E-06** at limit **
   9  Prefactor     .10000E-03    3.5273        .29648E-06** at limit **
  10  Prefactor     .10000E-03    9.8074        .65791E-06** at limit **
  11  Prefactor     4.3217        3.2317       -.14592E-07   -.54646E-04
  12  norm          .92351        .76132       -.13109E-07   -.14330E-03
  13  Prefactor     .10000E-03    3.9527       -.45349E-06** at limit **
  14  Prefactor     .10000E-03    6.4094        .31017E-06** at limit **
  15  norm          .10000E-03    .88395        .20494E-07** at limit **
  16  norm          .10000E-03    1.2740        .12932E-06** at limit **
  17  Prefactor     .10000E-03    6.0569        .16906E-05** at limit **
  18  Prefactor     58.249        44.631       -.39731E-05   -.20971E-03
  19  norm          .33974E-01    .36171       -.35658E-07    .78439E-04
  20  Normalizat    .88834        .12954       -.48341E-08   -.30604E-04
  21  Prefactor     .98810        .14649        .25321E-07   -.19179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.84872
  Prefactor  = 10.1963
  Prefactor  = 0.0001
  Prefactor  = 6.31592
  norm       = 36.2177
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.32174
  norm       = 0.92351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.2493
  norm       = 0.0339744
  Normalizat = 0.888342
  Prefactor  = 0.988102
 **********
 **   18 **HESSE 
 **********

 FCN=   7322.855     FROM HESSE     STATUS=OK           319 CALLS     2539 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.428        .40764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.8487        5.4676        .13475E-03   -1.5113    
   4  Prefactor     10.196        15.850        .12549E-03   -1.5069    
   5  Prefactor     .10000E-03    1.4528        .19818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3159        5.6834        .79853E-03   -1.5205    
   7  norm          36.218        36.482        .66593E-04   -1.4504    
   8  norm          .10000E-03    1.9822        .11627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5565        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3217        3.2271        .12693E-03   -1.5292    
  12  norm          .92351        .75013        .64463E-04   -1.5516    
  13  Prefactor     .10000E-03    3.9674        .16619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0642        .15604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4992        .18654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     58.249        45.724        .52562E-04   -1.4180    
  19  norm          .33974E-01    5.5410        .97241E-03   -1.5671    
  20  Normalizat    .88834        .15305        .21215E-03   -.96871    
  21  Prefactor     .98810        .17281        .23195E-03   -.93127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41115e-09
Minuit parameter uncertainties:
  1  5.34606e-05
  2  0.000103919
  3  5.46793
  4  15.8564
  5  2.75463e-06
  6  5.68386
  7  36.5041
  8  4.7523e-06
  9  7.98894e-06
  10  3.29939e-05
  11  3.22725
  12  0.750139
  13  1.51399e-05
  14  1.41088e-05
  15  5.95657e-06
  16  4.46309e-05
  17  6.46566e-05
  18  45.7519
  19  0.866566
  20  0.15312
  21  0.17291
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  4.752e-06  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.881e-01  1.729e-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:  8.883e-01  1.531e-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: 3.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964334/likelihoodResults_639014401_639273601_4FGL_J0157.7-4614_daily_bin1542.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) = 7322.8570575
delta logL = -0.00240379815114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7322.85465365
delta logL = 5.99493432674e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2472       1.0000          .0000       5.0000    
     3 'Normalizat'    .88834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98810       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=   7322.855     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      232 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.4399        .39061E-01** at limit **
   2  alpha         2.5292        3.6697        .16568E-01    .54894E-08
   3  Normalizat    .88834        .66399E-02    .21215E-03   -.37443E-03
   4  Prefactor     .98810        .76576E-02    .23195E-03   -.35583E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.52918
  Normalizat = 0.888341
  Prefactor  = 0.988102
 **********
 **   18 **HESSE 
 **********

 FCN=   7322.855     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0781        .18914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5292        2.7582        .66273E-03    .11673E-01
   3  Normalizat    .88834        .14904        .42430E-04   -.96871    
   4  Prefactor     .98810        .17188        .46389E-04   -.93127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01077e-10
Minuit parameter uncertainties:
  1  1.00247e-06
  2  181.208
  3  0.149113
  4  0.171977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964334': 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) = 7322.85465253
delta logL = 1.17792205856e-06

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  1.002e-06  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.529e+00  1.812e+02  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  2.259e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.599e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.881e-01  1.720e-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:  8.883e-01  1.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.435 -46.243

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/964334/cmap_HighResolution_639014401_639273601_4FGL_J0157.7-4614_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-05', job_status='DONE', photon_flux_upper_limit='3.28e-08', time_completed='2021-08-14 23:17:07.202455', job_id='964334', GAL2='0.99', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1629008227.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1542' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:17:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 964334: <4FGL_J0157.7-4614_daily_bin1542> in cluster <slac> Done

Job <4FGL_J0157.7-4614_daily_bin1542> 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) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 23:02:25 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:25 2021
Terminated at Sat Aug 14 23:17:07 2021
Results reported at Sat Aug 14 23:17:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1542 29.4353 -46.2431 639014401 639273601 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 :                                   785.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            975 sec.

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

