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


Performing analysis on: 4FGL_J0157.7-4614_weekly_bin680
RA = 29.4353, Dec = -46.2431
tmin = 650246401, tmax = 650851201
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='215908', job_status='RUN', time_executed='2021-12-07 16:23:07.412066', time_epoch_executed='1638922987.41' WHERE source_name='4FGL J0157.7-4614' and cadence='weekly' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215908

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215908/ft1_4FGL_J0157.7-4614_weekly_bin680.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215908/ft2_4FGL_J0157.7-4614_weekly_bin680.fits


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

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

Done.
real 6.97
user 6.65
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215908/ft1_filtered_4FGL_J0157.7-4614_weekly_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/215908/ft2_4FGL_J0157.7-4614_weekly_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/215908/ltcube_650246401_650851201_4FGL_J0157.7-4614_weekly_bin680.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/215908/ft2_4FGL_J0157.7-4614_weekly_bin680.fits
.....................!
real 27.31
user 26.66
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215908/ft1_filtered_4FGL_J0157.7-4614_weekly_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/215908/ft2_4FGL_J0157.7-4614_weekly_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/215908/ltcube_650246401_650851201_4FGL_J0157.7-4614_weekly_bin680.fits outfile=/scratch/kocevski/215908/expmap_650246401_650851201_4FGL_J0157.7-4614_weekly_bin680.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/215908/ltcube_650246401_650851201_4FGL_J0157.7-4614_weekly_bin680.fits
.....................!
real 157.17
user 152.05
sys 4.50

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/215908/ft1_filtered_4FGL_J0157.7-4614_weekly_bin680.fits scfile=/scratch/kocevski/215908/ft2_4FGL_J0157.7-4614_weekly_bin680.fits outfile=/scratch/kocevski/215908/cmap_650246401_650851201_4FGL_J0157.7-4614_weekly_bin680.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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215908/ft1_filtered_4FGL_J0157.7-4614_weekly_bin680.fits scfile=/scratch/kocevski/215908/ft2_4FGL_J0157.7-4614_weekly_bin680.fits outfile=/scratch/kocevski/215908/cmap_HighResolution_650246401_650851201_4FGL_J0157.7-4614_weekly_bin680.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.52
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/215908/ft1_filtered_4FGL_J0157.7-4614_weekly_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/215908/ft2_4FGL_J0157.7-4614_weekly_bin680.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215908/Model_4FGL_J0157.7-4614_weekly_bin680.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/215908/ft1_filtered_4FGL_J0157.7-4614_weekly_bin680.fits.....................!
real 160.68
user 159.08
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8101       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9346       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.059       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.759       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5271       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2109       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.699       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15612E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3361       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.644       1.0000         .10000E-03   10000.    
    19 'norm      '    .43378       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0340       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0846       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=   10815.37     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2188 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6121       -.38341E-07** at limit **
   2  Prefactor     1.8084        23.610       -.66155E-05   -.17669E-03
   3  norm          1.9342        4.7501        .11968E-05   -.10534E-02
   4  Prefactor     14.061        23.912        .13785E-05   -.19884E-04
   5  Prefactor     15.760        4.6386        .29186E-06   -.13061E-03
   6  Prefactor     .10000E-03    1.3260        .44687E-07** at limit **
   7  norm          .10000E-03    16.487        .26853E-05** at limit **
   8  norm          .10000E-03    1.7587        .55764E-07** at limit **
   9  Prefactor     .10000E-03    10.475        .23147E-05** at limit **
  10  Prefactor     .10000E-03    10.757        .15256E-05** at limit **
  11  Prefactor     4.5270        3.3292        .54770E-06   -.15487E-03
  12  norm          1.2110        .88473       -.11891E-06   -.59548E-03
  13  Prefactor     10.668        12.006       -.47779E-05    .12947E-04
  14  Prefactor     .10000E-03    19.434        .11605E-05** at limit **
  15  norm          2.3361        1.4560       -.12623E-06   -.58030E-03
  16  norm          .10000E-03    .48560        .54012E-07** at limit **
  17  Prefactor     .10000E-03    11.338       -.50580E-05** at limit **
  18  Prefactor     24.645        20.929        .55786E-06    .42990E-05
  19  norm          .43418        .62161       -.47771E-07   -.14506E-02
  20  Normalizat    1.0339        .13198        .10863E-05    .58680E-04
  21  Prefactor     1.0847        .14029       -.21386E-06    .16727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.80838
  norm       = 1.93422
  Prefactor  = 14.0612
  Prefactor  = 15.7596
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.52701
  norm       = 1.21098
  Prefactor  = 10.6675
  Prefactor  = 0.000100003
  norm       = 2.33607
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.645
  norm       = 0.434179
  Normalizat = 1.03393
  Prefactor  = 1.08471
 **********
 **   18 **HESSE 
 **********

 FCN=   10815.37     FROM HESSE     STATUS=OK           319 CALLS     2507 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8084        25.403        .31055E-03   -1.5439    
   3  norm          1.9342        4.6450        .29856E-03   -1.5430    
   4  Prefactor     14.061        23.851        .10682E-03   -1.4958    
   5  Prefactor     15.760        4.6226        .10089E-03   -1.4914    
   6  Prefactor     .10000E-03    1.3296        .11694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    16.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.8104        .26925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5270        3.3043        .15206E-03   -1.5282    
  12  norm          1.2110        .87134        .77881E-04   -1.5488    
  13  Prefactor     10.668        11.934        .12249E-03   -1.5055    
  14  Prefactor     .10000E-03    19.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3361        1.4565        .95702E-04   -1.5402    
  16  norm          .10000E-03    .48850        .70752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.645        20.920        .80691E-04   -1.4715    
  19  norm          .43418        .52941        .93600E-03   -1.5576    
  20  Normalizat    1.0339        .15774        .23732E-03   -.91902    
  21  Prefactor     1.0847        .16815        .25418E-03   -.89957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04359e-09
Minuit parameter uncertainties:
  1  2.56632e-06
  2  13.5622
  3  4.6459
  4  23.8668
  5  4.62266
  6  5.8729e-07
  7  8.41759e-06
  8  1.0093e-06
  9  5.73034e-05
  10  1.07352e-05
  11  3.30448
  12  0.871349
  13  11.9371
  14  0.000492803
  15  1.45651
  16  4.47166e-07
  17  0.000190792
  18  20.9265
  19  0.52942
  20  0.15781
  21  0.168234
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  1.009e-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:  1.085e+00  1.682e-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.034e+00  1.578e-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: 2.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/215908/likelihoodResults_650246401_650851201_4FGL_J0157.7-4614_weekly_bin680.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) = 10815.3739091
delta logL = -0.00263296675075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10815.3712773
delta logL = -1.20873119158e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2133       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0847       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=   10815.37     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      248 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    373.73        .27648E-02** at limit **
   2  alpha         1.5223        2.6643        .16599       -.28217E-07
   3  Normalizat    1.0339        .44512E-01    .23732E-03    .28685E-03
   4  Prefactor     1.0847        .48971E-01    .25418E-03    .28017E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.52235
  Normalizat = 1.03393
  Prefactor  = 1.08471
 **********
 **   18 **HESSE 
 **********

 FCN=   10815.37     FROM HESSE     STATUS=OK            23 CALLS      271 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.8960        .55296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5223        2.8467        .66398E-02   -.40178    
   3  Normalizat    1.0339        .15221        .94928E-05   -.91902    
   4  Prefactor     1.0847        .16724        .10167E-04   -.89957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00865e-10
Minuit parameter uncertainties:
  1  3.99977e-05
  2  149.19
  3  0.152279
  4  0.167317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215908': 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) = 10815.3712657
delta logL = 1.03474103526e-05

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  4.000e-05  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.522e+00  1.492e+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:  1.085e+00  1.673e-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.034e+00  1.523e-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/215908/cmap_HighResolution_650246401_650851201_4FGL_J0157.7-4614_weekly_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-05', job_status='DONE', photon_flux_upper_limit='2.90e-08', time_completed='2021-12-07 16:37:10.711443', job_id='215908', GAL2='1.08', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1638923830.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.03e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='680' AND source_name='4FGL J0157.7-4614' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec  7 16:37:10 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 215908: <4FGL_J0157.7-4614_weekly_bin680> in cluster <slac> Done

Job <4FGL_J0157.7-4614_weekly_bin680> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 16:20:40 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 16:22:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 16:22:53 2021
Terminated at Tue Dec  7 16:37:11 2021
Results reported at Tue Dec  7 16:37:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_weekly_bin680 29.4353 -46.2431 650246401 650851201 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 :                                   840.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             347.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            991 sec.

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

