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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1030
RA = 29.4353, Dec = -46.2431
tmin = 506304001, tmax = 506563201
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='960828', job_status='RUN', time_executed='2021-08-14 22:55:13.212394', time_epoch_executed='1629006913.21' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960828

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960828/ft1_4FGL_J0157.7-4614_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960828/ft2_4FGL_J0157.7-4614_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960828/ft1_4FGL_J0157.7-4614_daily_bin1030.fits outfile=/scratch/kocevski/960828/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1030.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=506304001.0 tmax=506563201.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.62
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/960828/ft1_filtered_4FGL_J0157.7-4614_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/960828/ft2_4FGL_J0157.7-4614_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/960828/ltcube_506304001_506563201_4FGL_J0157.7-4614_daily_bin1030.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/960828/ft2_4FGL_J0157.7-4614_daily_bin1030.fits
.....................!
real 14.71
user 14.34
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960828/ft1_filtered_4FGL_J0157.7-4614_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/960828/ft2_4FGL_J0157.7-4614_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/960828/ltcube_506304001_506563201_4FGL_J0157.7-4614_daily_bin1030.fits outfile=/scratch/kocevski/960828/expmap_506304001_506563201_4FGL_J0157.7-4614_daily_bin1030.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/960828/ltcube_506304001_506563201_4FGL_J0157.7-4614_daily_bin1030.fits
.....................!
real 190.47
user 185.68
sys 4.31

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/960828/ft1_filtered_4FGL_J0157.7-4614_daily_bin1030.fits scfile=/scratch/kocevski/960828/ft2_4FGL_J0157.7-4614_daily_bin1030.fits outfile=/scratch/kocevski/960828/cmap_506304001_506563201_4FGL_J0157.7-4614_daily_bin1030.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/960828/ft1_filtered_4FGL_J0157.7-4614_daily_bin1030.fits scfile=/scratch/kocevski/960828/ft2_4FGL_J0157.7-4614_daily_bin1030.fits outfile=/scratch/kocevski/960828/cmap_HighResolution_506304001_506563201_4FGL_J0157.7-4614_daily_bin1030.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/960828/ft1_filtered_4FGL_J0157.7-4614_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/960828/ft2_4FGL_J0157.7-4614_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/960828/Model_4FGL_J0157.7-4614_daily_bin1030.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/960828/ft1_filtered_4FGL_J0157.7-4614_daily_bin1030.fits.....................!
real 132.20
user 130.61
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4075       1.0000         .10000E-03   10000.    
     3 'norm      '    42.090       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8803       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0404       1.0000         .10000E-03   10000.    
     7 'norm      '    46.448       1.0000         .10000E-03   10000.    
     8 'norm      '    .10580E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6499       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.593       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4705       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9739       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3326       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3194       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.078       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3393       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90725       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86316       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=   6868.186     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     1919 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.949        .25940E-06** at limit **
   2  Prefactor     6.3912        22.781       -.22048E-06   -.62617E-04
   3  norm          42.093        11.667       -.10843E-07    .14001E-04
   4  Prefactor     1.2398        21.633        .34075E-05    .14986E-04
   5  Prefactor     1.8807        2.2033        .56114E-07   -.32642E-04
   6  Prefactor     3.0401        5.8510        .40341E-06    .13606E-03
   7  norm          46.442        46.836       -.21645E-06   -.33695E-04
   8  norm          .10002E-03    2.7785       -.26506E-06** at limit **
   9  Prefactor     7.6506        7.5369        .41926E-07   -.92726E-05
  10  Prefactor     11.584        17.054       -.71866E-06    .42752E-04
  11  Prefactor     1.4683        4.0984        .13443E-05    .76263E-04
  12  norm          4.9744        1.7253       -.10475E-06   -.17005E-03
  13  Prefactor     6.3387        11.118        .39920E-07    .17652E-04
  14  Prefactor     .10000E-03    9.7567        .18818E-06** at limit **
  15  norm          .10000E-03    .91250        .64861E-07** at limit **
  16  norm          1.3193        1.9390        .35201E-06    .71377E-04
  17  Prefactor     12.080        11.323        .28553E-07   -.86835E-05
  18  Prefactor     .10000E-03    16.862        .37568E-07** at limit **
  19  norm          1.3393        .91906        .43139E-07    .23056E-04
  20  Normalizat    .90689        .15524        .98082E-06   -.13392E-03
  21  Prefactor     .86356        .16557       -.17708E-05    .54949E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.39122
  norm       = 42.0935
  Prefactor  = 1.23984
  Prefactor  = 1.88069
  Prefactor  = 3.0401
  norm       = 46.4416
  norm       = 0.00010002
  Prefactor  = 7.65058
  Prefactor  = 11.5835
  Prefactor  = 1.4683
  norm       = 4.97442
  Prefactor  = 6.33871
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.31933
  Prefactor  = 12.0801
  Prefactor  = 0.0001
  norm       = 1.33926
  Normalizat = 0.906892
  Prefactor  = 0.863556
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.186     FROM HESSE     STATUS=OK           329 CALLS     2248 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3912        22.926        .15856E-03   -1.5202    
   3  norm          42.093        11.656        .61790E-04   -1.4409    
   4  Prefactor     1.2398        21.969        .40291E-03   -1.5485    
   5  Prefactor     1.8807        2.1862        .12833E-03   -1.5434    
   6  Prefactor     3.0401        5.7991        .23270E-03   -1.5359    
   7  norm          46.442        46.851        .58832E-04   -1.4344    
   8  norm          .10002E-03    17.147        .24546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.6506        7.5384        .14499E-03   -1.5155    
  10  Prefactor     11.584        16.230        .11766E-03   -1.5027    
  11  Prefactor     1.4683        4.0901        .25605E-03   -1.5466    
  12  norm          4.9744        1.7137        .57042E-04   -1.5262    
  13  Prefactor     6.3387        11.091        .15951E-03   -1.5204    
  14  Prefactor     .10000E-03    9.7625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .95010        .15454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3193        1.9267        .13489E-03   -1.5478    
  17  Prefactor     12.080        11.275        .11527E-03   -1.5013    
  18  Prefactor     .10000E-03    16.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3393        .90484        .61205E-04   -1.5477    
  20  Normalizat    .90689        .17552        .22316E-03   -.96218    
  21  Prefactor     .86356        .18423        .25330E-03   -.97426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21299e-09
Minuit parameter uncertainties:
  1  4.58533e-05
  2  22.9572
  3  11.657
  4  10.442
  5  2.18627
  6  5.80021
  7  46.8878
  8  0.00118085
  9  7.5393
  10  16.236
  11  4.09084
  12  1.71376
  13  11.0941
  14  4.54981e-06
  15  9.93738e-07
  16  1.92678
  17  11.2775
  18  1.45408e-06
  19  0.904852
  20  0.175633
  21  0.184363
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  1.181e-03  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.636e-01  1.844e-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.069e-01  1.756e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/960828/likelihoodResults_506304001_506563201_4FGL_J0157.7-4614_daily_bin1030.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) = 6868.18630739
delta logL = -0.000275825642348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6868.18603197
delta logL = -4.01913894166e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11706E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1838       1.0000          .0000       5.0000    
     3 'Normalizat'    .90681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86369       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=   6868.186     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      275 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10059E-03    11.528        .44591E-01** at limit **
   2  alpha         2.0583        3.1250        .16630        .83155E-06
   3  Normalizat    .90689        .79562E-02    .22315E-03    .30873E-04
   4  Prefactor     .86355        .88833E-02    .25330E-03    .46229E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100588
  alpha      = 2.05832
  Normalizat = 0.906893
  Prefactor  = 0.863555
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.186     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10059E-03    25.565        .44410E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0583        2.6542        .66521E-02   -.17760    
   3  Normalizat    .90689        .11913E-01    .89262E-05   -.96218    
   4  Prefactor     .86355        .13302E-01    .10132E-04   -.97426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.97711e-10
Minuit parameter uncertainties:
  1  0.00775492
  2  556.904
  3  0.0119127
  4  0.013302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960828': 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) = 6868.18603093
delta logL = 6.42916347715e-07

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.006e-04  7.755e-03  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.058e+00  5.569e+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:  8.636e-01  1.330e-02  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.069e-01  1.191e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/960828/cmap_HighResolution_506304001_506563201_4FGL_J0157.7-4614_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-05', job_status='DONE', photon_flux_upper_limit='3.95e-08', time_completed='2021-08-14 23:07:25.155956', job_id='960828', GAL2='0.86', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1629007645.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='6.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1030' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:07:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 960828: <4FGL_J0157.7-4614_daily_bin1030> in cluster <slac> Done

Job <4FGL_J0157.7-4614_daily_bin1030> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 22:50:47 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 22:54:34 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:54:34 2021
Terminated at Sat Aug 14 23:07:25 2021
Results reported at Sat Aug 14 23:07:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1030 29.4353 -46.2431 506304001 506563201 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 :                                   727.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            998 sec.

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

