/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 41 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7441
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1411
RA = 29.4353, Dec = -46.2431
tmin = 605059201, tmax = 605318401
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='964119', job_status='RUN', time_executed='2021-08-14 23:02:29.028540', time_epoch_executed='1629007349.03' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964119

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964119/ft1_4FGL_J0157.7-4614_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964119/ft2_4FGL_J0157.7-4614_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964119/ft1_4FGL_J0157.7-4614_daily_bin1411.fits outfile=/scratch/kocevski/964119/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1411.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=605059201.0 tmax=605318401.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 7.59
user 5.14
sys 2.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964119/ft1_filtered_4FGL_J0157.7-4614_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/964119/ft2_4FGL_J0157.7-4614_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/964119/ltcube_605059201_605318401_4FGL_J0157.7-4614_daily_bin1411.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/964119/ft2_4FGL_J0157.7-4614_daily_bin1411.fits
.....................!
real 14.61
user 11.76
sys 2.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964119/ft1_filtered_4FGL_J0157.7-4614_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/964119/ft2_4FGL_J0157.7-4614_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/964119/ltcube_605059201_605318401_4FGL_J0157.7-4614_daily_bin1411.fits outfile=/scratch/kocevski/964119/expmap_605059201_605318401_4FGL_J0157.7-4614_daily_bin1411.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/964119/ltcube_605059201_605318401_4FGL_J0157.7-4614_daily_bin1411.fits
.....................!
real 200.71
user 191.96
sys 8.20

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/964119/ft1_filtered_4FGL_J0157.7-4614_daily_bin1411.fits scfile=/scratch/kocevski/964119/ft2_4FGL_J0157.7-4614_daily_bin1411.fits outfile=/scratch/kocevski/964119/cmap_605059201_605318401_4FGL_J0157.7-4614_daily_bin1411.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 2.69
user 0.39
sys 2.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964119/ft1_filtered_4FGL_J0157.7-4614_daily_bin1411.fits scfile=/scratch/kocevski/964119/ft2_4FGL_J0157.7-4614_daily_bin1411.fits outfile=/scratch/kocevski/964119/cmap_HighResolution_605059201_605318401_4FGL_J0157.7-4614_daily_bin1411.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 2.72
user 0.38
sys 2.30

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964119/ft1_filtered_4FGL_J0157.7-4614_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/964119/ft2_4FGL_J0157.7-4614_daily_bin1411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964119/Model_4FGL_J0157.7-4614_daily_bin1411.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/964119/ft1_filtered_4FGL_J0157.7-4614_daily_bin1411.fits.....................!
real 110.99
user 106.46
sys 4.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9721       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .53637E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.490       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15687E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54400       1.0000         .10000E-03   10000.    
     7 'norm      '    .51983E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7363       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31772E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.269       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    47.382       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .50169E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .66445       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5973       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88025E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .80906E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2414       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5277.142     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1667 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6064        19.372        .39173E-05   -.90157E-03
   2  Prefactor     .10000E-03    9.2544       -.57435E-05** at limit **
   3  norm          .10000E-03    2.5616       -.11009E-06** at limit **
   4  Prefactor     42.178        44.363       -.65791E-06   -.19830E-02
   5  Prefactor     .10000E-03    3.0555        .15351E-05** at limit **
   6  Prefactor     .48712        6.8692        .36707E-05    .21200E-02
   7  norm          .10000E-03    23.836        .32635E-05** at limit **
   8  norm          3.6728        7.9371        .24462E-05   -.11515E-02
   9  Prefactor     .10000E-03    5.7441        .30008E-05** at limit **
  10  Prefactor     47.849        37.040       -.49457E-06    .15619E-02
  11  Prefactor     .10000E-03    2.6004        .16478E-05** at limit **
  12  norm          47.369        4.6459       -.48130E-06   -.43002E-03
  13  Prefactor     .10000E-03    3.0535        .15604E-05** at limit **
  14  Prefactor     .10000E-03    6.9154        .13478E-05** at limit **
  15  norm          .10000E-03    .60499       -.18145E-06** at limit **
  16  norm          .66618        4.5265       -.24939E-05    .50435E-05
  17  Prefactor     6.7614        15.250       -.20690E-05    .14645E-02
  18  Prefactor     .10000E-03    17.905       -.28983E-05** at limit **
  19  norm          .81015E-01    3.7308        .54004E-05   -.59573E-04
  20  Normalizat    1.2399        .28001        .12566E-05   -.14953E-04
  21  Prefactor     .85867        .27876       -.23868E-05   -.13215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.6064
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.1784
  Prefactor  = 0.000100002
  Prefactor  = 0.487122
  norm       = 0.000100001
  norm       = 3.67277
  Prefactor  = 0.0001
  Prefactor  = 47.8494
  Prefactor  = 0.0001
  norm       = 47.3687
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.666183
  Prefactor  = 6.7614
  Prefactor  = 0.0001
  norm       = 0.0810152
  Normalizat = 1.23995
  Prefactor  = 0.858672
 **********
 **   18 **HESSE 
 **********

 FCN=   5277.142     FROM HESSE     STATUS=OK           369 CALLS     2036 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6064        19.505        .33452E-02   -1.5121    
   2  Prefactor     .10000E-03    9.2536        .10561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.5607        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.178        57.269        .15558E-02   -1.4408    
   5  Prefactor     .10000E-03    5.7636        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .48712        14.350        .83960E-01   -1.5568    
   7  norm          .10000E-03    23.847        .95741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6728        9.9695        .52223E-02   -1.5325    
   9  Prefactor     .10000E-03    5.7368        .10683E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     47.849        56.352        .14580E-02   -1.4323    
  11  Prefactor     .10000E-03    2.5902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          47.369        4.6937        .14563E-02   -1.4330    
  13  Prefactor     .10000E-03    5.8933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9133        .10578E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .60171        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .66618        4.4064        .11925E-01   -1.5545    
  17  Prefactor     6.7614        15.701        .39059E-02   -1.5188    
  18  Prefactor     .10000E-03    17.919        .91544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .81015E-01    .72123        .33327E-01   -1.5651    
  20  Normalizat    1.2399        .22820        .60110E-01   -.85377    
  21  Prefactor     .85867        .22869        .74488E-01   -.97601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01325e-07
Minuit parameter uncertainties:
  1  19.5196
  2  1.08512e-05
  3  1.48692e-07
  4  57.3439
  5  0.000227322
  6  5.28858
  7  0.000226877
  8  9.97399
  9  2.94976e-06
  10  56.4149
  11  5.87677e-08
  12  4.69371
  13  0.000235206
  14  9.47484e-06
  15  2.81978e-07
  16  3.42676
  17  15.7109
  18  0.000150439
  19  0.483158
  20  0.228382
  21  0.228946
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  3.673e+00  9.974e+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.587e-01  2.289e-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.240e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 29.435 -46.243
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964119/likelihoodResults_605059201_605318401_4FGL_J0157.7-4614_daily_bin1411.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) = 5276.97038936
delta logL = 0.171152907105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5276.95957442
delta logL = 0.181967854392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2188       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0909       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87539       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=   5276.960     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2160        135.36        .56451E-02   -.50772E-03
   2  alpha         3.0930        3.2602        .42707       -.51812E-04
   3  Normalizat    1.2110        .66664E-01    .60641E-01   -.62291E-03
   4  Prefactor     .87593        .66692E-01    .73768E-01   -.27136E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.21604
  alpha      = 3.09304
  Normalizat = 1.21103
  Prefactor  = 0.875929
 **********
 **   18 **HESSE 
 **********

 FCN=   5276.960     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2160        6.8686        .16656E-03   -1.5349    
   2  alpha         3.0930        1.4339        .21401E-01    .23950    
   3  Normalizat    1.2110        .26671        .26819E-03   -.86263    
   4  Prefactor     .87593        .27746        .32644E-03   -.96987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48027e-09
Minuit parameter uncertainties:
  1  6.87032
  2  1.53391
  3  0.267014
  4  0.277903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964119': 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) = 5276.95957086
delta logL = 0.181971408238

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  8.759e-01  2.779e-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.211e+00  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/964119/cmap_HighResolution_605059201_605318401_4FGL_J0157.7-4614_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-08-14 23:14:18.788085', job_id='964119', GAL2='0.88', fit_tolerance='1e-08', EG2='1.21', EG='1.24', time_epoch_completed='1629008058.79', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.82e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1411' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:14:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 964119: <4FGL_J0157.7-4614_daily_bin1411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1411 29.4353 -46.2431 605059201 605318401 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 :                                   713.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            823 sec.

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

