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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1463
RA = 29.4353, Dec = -46.2431
tmin = 618537601, tmax = 618796801
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='964207', job_status='RUN', time_executed='2021-08-14 23:02:39.180719', time_epoch_executed='1629007359.18' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964207

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964207/ft1_4FGL_J0157.7-4614_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964207/ft2_4FGL_J0157.7-4614_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964207/ft1_4FGL_J0157.7-4614_daily_bin1463.fits outfile=/scratch/kocevski/964207/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1463.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=618537601.0 tmax=618796801.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.43
user 3.51
sys 0.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964207/ft1_filtered_4FGL_J0157.7-4614_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/964207/ft2_4FGL_J0157.7-4614_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/964207/ltcube_618537601_618796801_4FGL_J0157.7-4614_daily_bin1463.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/964207/ft2_4FGL_J0157.7-4614_daily_bin1463.fits
.....................!
real 14.83
user 13.59
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964207/ft1_filtered_4FGL_J0157.7-4614_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/964207/ft2_4FGL_J0157.7-4614_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/964207/ltcube_618537601_618796801_4FGL_J0157.7-4614_daily_bin1463.fits outfile=/scratch/kocevski/964207/expmap_618537601_618796801_4FGL_J0157.7-4614_daily_bin1463.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/964207/ltcube_618537601_618796801_4FGL_J0157.7-4614_daily_bin1463.fits
.....................!
real 192.66
user 185.87
sys 6.27

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/964207/ft1_filtered_4FGL_J0157.7-4614_daily_bin1463.fits scfile=/scratch/kocevski/964207/ft2_4FGL_J0157.7-4614_daily_bin1463.fits outfile=/scratch/kocevski/964207/cmap_618537601_618796801_4FGL_J0157.7-4614_daily_bin1463.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.19
user 0.37
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964207/ft1_filtered_4FGL_J0157.7-4614_daily_bin1463.fits scfile=/scratch/kocevski/964207/ft2_4FGL_J0157.7-4614_daily_bin1463.fits outfile=/scratch/kocevski/964207/cmap_HighResolution_618537601_618796801_4FGL_J0157.7-4614_daily_bin1463.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.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964207/ft1_filtered_4FGL_J0157.7-4614_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/964207/ft2_4FGL_J0157.7-4614_daily_bin1463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964207/Model_4FGL_J0157.7-4614_daily_bin1463.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/964207/ft1_filtered_4FGL_J0157.7-4614_daily_bin1463.fits.....................!
real 105.56
user 102.88
sys 2.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    62.361       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8265       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10115E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.211       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.254       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2373       1.0000         .10000E-03   10000.    
    12 'norm      '    16.486       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2866       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2810       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0096       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5893       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .21376       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3021       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78325       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=   5298.432     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2210 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7831       -.37117E-07** at limit **
   2  Prefactor     .10000E-03    17.188        .77206E-07** at limit **
   3  norm          62.405        17.818        .14940E-06    .27113E-03
   4  Prefactor     .10000E-03    11.995       -.40206E-07** at limit **
   5  Prefactor     1.8285        2.8578        .10164E-06   -.13838E-04
   6  Prefactor     .10000E-03    2.8547       -.52928E-07** at limit **
   7  norm          .10000E-03    23.992        .15417E-06** at limit **
   8  norm          .10000E-03    3.6901       -.10985E-05** at limit **
   9  Prefactor     26.213        16.764        .24790E-07    .79098E-05
  10  Prefactor     35.241        34.562        .38070E-05    .10849E-03
  11  Prefactor     5.2364        5.2372        .48089E-07   -.49478E-04
  12  norm          16.487        3.0180        .17580E-07    .17315E-04
  13  Prefactor     2.3030        51.027       -.85592E-06   -.90394E-05
  14  Prefactor     .10000E-03    28.723        .21925E-05** at limit **
  15  norm          5.2790        2.6289        .66719E-08   -.23870E-04
  16  norm          1.0097        2.7791        .65506E-06   -.51660E-04
  17  Prefactor     6.5871        18.152        .16313E-06   -.84948E-04
  18  Prefactor     .10000E-03    22.375        .51080E-07** at limit **
  19  norm          .21340        1.1638        .86853E-06   -.21139E-03
  20  Normalizat    1.3014        .21544       -.14167E-05    .95247E-04
  21  Prefactor     .78370        .21973        .18055E-05   -.49343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 62.4052
  Prefactor  = 0.0001
  Prefactor  = 1.82851
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.2128
  Prefactor  = 35.2407
  Prefactor  = 5.23637
  norm       = 16.4865
  Prefactor  = 2.30297
  Prefactor  = 0.0001
  norm       = 5.27897
  norm       = 1.00968
  Prefactor  = 6.58705
  Prefactor  = 0.0001
  norm       = 0.213402
  Normalizat = 1.30145
  Prefactor  = 0.783698
 **********
 **   18 **HESSE 
 **********

 FCN=   5298.432     FROM HESSE     STATUS=OK           317 CALLS     2527 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          62.405        17.724        .50813E-04   -1.4126    
   4  Prefactor     .10000E-03    12.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8285        2.8329        .14933E-03   -1.5438    
   6  Prefactor     .10000E-03    2.8594        .12010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    23.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    29.837        .25268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.213        16.764        .78247E-04   -1.4684    
  10  Prefactor     35.241        34.649        .67494E-04   -1.4520    
  11  Prefactor     5.2364        5.2318        .15938E-03   -1.5250    
  12  norm          16.487        3.0182        .50827E-04   -1.4896    
  13  Prefactor     2.3030        49.412        .27148E-03   -1.5404    
  14  Prefactor     .10000E-03    28.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2790        2.6277        .80362E-04   -1.5248    
  16  norm          1.0097        2.7428        .19252E-03   -1.5507    
  17  Prefactor     6.5871        17.541        .15633E-03   -1.5195    
  18  Prefactor     .10000E-03    22.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .21340        1.0928        .13988E-03   -1.5616    
  20  Normalizat    1.3014        .25286        .24426E-03   -.83523    
  21  Prefactor     .78370        .25598        .32230E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3781e-10
Minuit parameter uncertainties:
  1  4.0562e-07
  2  9.09116e-05
  3  17.7255
  4  1.69758e-05
  5  2.83312
  6  2.50294e-06
  7  6.15033e-05
  8  0.000112928
  9  16.7671
  10  34.6691
  11  5.23228
  12  3.01827
  13  21.3545
  14  7.69152e-05
  15  2.62778
  16  2.7431
  17  17.5543
  18  4.20215e-05
  19  0.965626
  20  0.253097
  21  0.256367
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  1.129e-04  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:  7.837e-01  2.564e-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:  1.301e+00  2.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: 6.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964207/likelihoodResults_618537601_618796801_4FGL_J0157.7-4614_daily_bin1463.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) = 5298.43242106
delta logL = -0.000159400668963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5298.43226161
delta logL = 5.02741386299e-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.2680       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78370       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5298.432     FROM MIGRAD    STATUS=FAILED        99 CALLS      270 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10047E-03    1880.4        .31100E-02** at limit **
   2  alpha         2.3695        3.0522        .16551       -.44737E-06
   3  Normalizat    1.3014        .44105E-01    .24427E-03   -.13032E-04
   4  Prefactor     .78370        .46619E-01    .32230E-03   -.43386E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5298.432     FROM SIMPLEX   STATUS=UNCHANGED    150 CALLS      420 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10047E-03    1880.4        .76999E-03** at limit **
   2  alpha         2.3695        3.0522        .76453E-05   -.44737E-06
   3  Normalizat    1.3014        .44105E-01    .31739E-06   -.13032E-04
   4  Prefactor     .78370        .46619E-01    .13727E-06   -.43386E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5298.432     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      448 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10023E-03    32.909        .12440E-03** at limit **
   2  alpha         2.3599        3.3991        .66204E-02   -.78236E-06
   3  Normalizat    1.3014        .24053        .97706E-05   -.21177E-04
   4  Prefactor     .78370        .25397        .12892E-04   -.10406E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100232
  alpha      = 2.35985
  Normalizat = 1.30144
  Prefactor  = 0.783701
 **********
 **   18 **HESSE 
 **********

 FCN=   5298.432     FROM HESSE     STATUS=OK            23 CALLS      471 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10023E-03    32.903        .24880E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3599        3.4841        .13241E-02   -.56088E-01
   3  Normalizat    1.3014        .24080        .19541E-05   -.83523    
   4  Prefactor     .78370        .25418        .25784E-05   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4141e-08
Minuit parameter uncertainties:
  1  0.00552418
  2  268.98
  3  0.241005
  4  0.254558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964207': 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) = 5298.43226152
delta logL = 1.33317371365e-07

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.002e-04  5.524e-03  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.360e+00  2.690e+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:  7.837e-01  2.546e-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:  1.301e+00  2.410e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/964207/cmap_HighResolution_618537601_618796801_4FGL_J0157.7-4614_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-05', job_status='DONE', photon_flux_upper_limit='6.87e-08', time_completed='2021-08-14 23:14:48.921567', job_id='964207', GAL2='0.78', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1629008088.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1463' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:14:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 964207: <4FGL_J0157.7-4614_daily_bin1463> in cluster <slac> Done

Job <4FGL_J0157.7-4614_daily_bin1463> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 23:00:43 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 23:01:36 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:01:36 2021
Terminated at Sat Aug 14 23:14:49 2021
Results reported at Sat Aug 14 23:14:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1463 29.4353 -46.2431 618537601 618796801 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 :                                   686.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            846 sec.

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

