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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1326
RA = 29.4353, Dec = -46.2431
tmin = 583027201, tmax = 583286401
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='962627', job_status='RUN', time_executed='2021-08-14 22:59:11.105221', time_epoch_executed='1629007151.11' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/962627

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/962627/ft1_4FGL_J0157.7-4614_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/962627/ft2_4FGL_J0157.7-4614_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/962627/ft1_4FGL_J0157.7-4614_daily_bin1326.fits outfile=/scratch/kocevski/962627/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1326.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=583027201.0 tmax=583286401.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.39
user 3.34
sys 1.01

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/962627/ft1_filtered_4FGL_J0157.7-4614_daily_bin1326.fits" evtable="EVENTS" scfile=/scratch/kocevski/962627/ft2_4FGL_J0157.7-4614_daily_bin1326.fits sctable="SC_DATA" outfile=/scratch/kocevski/962627/ltcube_583027201_583286401_4FGL_J0157.7-4614_daily_bin1326.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/962627/ft2_4FGL_J0157.7-4614_daily_bin1326.fits
.....................!
real 14.01
user 12.70
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/962627/ft1_filtered_4FGL_J0157.7-4614_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/962627/ft2_4FGL_J0157.7-4614_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/962627/ltcube_583027201_583286401_4FGL_J0157.7-4614_daily_bin1326.fits outfile=/scratch/kocevski/962627/expmap_583027201_583286401_4FGL_J0157.7-4614_daily_bin1326.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/962627/ltcube_583027201_583286401_4FGL_J0157.7-4614_daily_bin1326.fits
.....................!
real 193.59
user 186.34
sys 6.70

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/962627/ft1_filtered_4FGL_J0157.7-4614_daily_bin1326.fits scfile=/scratch/kocevski/962627/ft2_4FGL_J0157.7-4614_daily_bin1326.fits outfile=/scratch/kocevski/962627/cmap_583027201_583286401_4FGL_J0157.7-4614_daily_bin1326.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.29
user 0.37
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/962627/ft1_filtered_4FGL_J0157.7-4614_daily_bin1326.fits scfile=/scratch/kocevski/962627/ft2_4FGL_J0157.7-4614_daily_bin1326.fits outfile=/scratch/kocevski/962627/cmap_HighResolution_583027201_583286401_4FGL_J0157.7-4614_daily_bin1326.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.30
user 0.38
sys 0.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/962627/ft1_filtered_4FGL_J0157.7-4614_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/962627/ft2_4FGL_J0157.7-4614_daily_bin1326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/962627/Model_4FGL_J0157.7-4614_daily_bin1326.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/962627/ft1_filtered_4FGL_J0157.7-4614_daily_bin1326.fits.....................!
real 124.50
user 121.72
sys 2.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2191       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.553       1.0000         .10000E-03   10000.    
     3 'norm      '    8.7868       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4388       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8838       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12259E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.839       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.353       1.0000         .10000E-03   10000.    
    15 'norm      '    .13148       1.0000         .10000E-03   10000.    
    16 'norm      '    .18155E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10873       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0255       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0528       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85215       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=   6234.668     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2405 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2164        14.807        .19664E-07    .41642E-05
   2  Prefactor     12.547        18.844       -.30280E-06    .80442E-04
   3  norm          8.7846        7.9553       -.10269E-07    .83853E-04
   4  Prefactor     .10000E-03    5.2610        .31063E-08** at limit **
   5  Prefactor     .10000E-03    1.4499       -.19989E-08** at limit **
   6  Prefactor     2.4395        5.3973        .28565E-05   -.69126E-03
   7  norm          .10000E-03    24.947        .20768E-07** at limit **
   8  norm          .10000E-03    3.2229       -.10296E-06** at limit **
   9  Prefactor     2.8812        10.484        .28169E-05   -.24772E-03
  10  Prefactor     .10000E-03    66.176       -.82416E-06** at limit **
  11  Prefactor     .10000E-03    2.8993       -.10453E-07** at limit **
  12  norm          12.840        2.2844        .39924E-07    .17823E-02
  13  Prefactor     .10002E-03    13.259       -.45124E-05** at limit **
  14  Prefactor     32.369        21.690        .97297E-06    .24043E-03
  15  norm          .13188        1.1570       -.62773E-07   -.22378E-03
  16  norm          .10001E-03    1.0664        .15733E-06** at limit **
  17  Prefactor     .10550E-03    10.001       -.15601E-05** at limit **
  18  Prefactor     .10000E-03    14.692       -.37558E-07** at limit **
  19  norm          1.0278        1.2258        .19880E-06    .14846E-02
  20  Normalizat    1.0530        .16575        .76387E-07    .76574E-03
  21  Prefactor     .85209        .17621       -.16091E-06    .54645E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.21637
  Prefactor  = 12.5474
  norm       = 8.7846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43951
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.88119
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.8396
  Prefactor  = 0.000100023
  Prefactor  = 32.3692
  norm       = 0.131877
  norm       = 0.000100011
  Prefactor  = 0.000105502
  Prefactor  = 0.0001
  norm       = 1.02779
  Normalizat = 1.05298
  Prefactor  = 0.852085
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.668     FROM HESSE     STATUS=OK           333 CALLS     2738 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2164        14.808        .16097E-03   -1.5209    
   2  Prefactor     12.547        18.870        .11306E-03   -1.4999    
   3  norm          8.7846        7.9593        .13522E-03   -1.5115    
   4  Prefactor     .10000E-03    5.2638        .17688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4703        .92815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4395        5.5625        .13100E-02   -1.5396    
   7  norm          .10000E-03    24.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.2823        .13837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8812        10.631        .11966E-02   -1.5368    
  10  Prefactor     .10000E-03    67.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.7185        .25774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.840        2.2589        .47129E-04   -1.4991    
  13  Prefactor     .10002E-03    15.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.369        21.808        .70446E-04   -1.4569    
  15  norm          .13188        2.8921        .16410E-02   -1.5635    
  16  norm          .10001E-03    1.9777        .29841E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10550E-03    20.479        .61493E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0278        1.1927        .84991E-04   -1.5505    
  20  Normalizat    1.0530        .19489        .22108E-03   -.91276    
  21  Prefactor     .85209        .20527        .26691E-03   -.97836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96477e-08
Minuit parameter uncertainties:
  1  14.8165
  2  18.8794
  3  7.96029
  4  2.58861e-07
  5  6.92482e-07
  6  5.56364
  7  5.68689e-06
  8  1.67426e-05
  9  10.6375
  10  0.000522849
  11  1.66764e-05
  12  2.25895
  13  0.00117757
  14  21.8132
  15  1.23474
  16  0.000296524
  17  0.0212359
  18  1.40757e-05
  19  1.19276
  20  0.19502
  21  0.205452
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  1.674e-05  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.521e-01  2.055e-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.053e+00  1.950e-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: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/962627/likelihoodResults_583027201_583286401_4FGL_J0157.7-4614_daily_bin1326.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) = 6234.66903986
delta logL = -0.00145280631932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6234.66758859
delta logL = -1.53840574058e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10909E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2548       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85195       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=   6234.668     FROM MIGRAD    STATUS=CONVERGED    157 CALLS      300 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .24044        .29303E-01** at limit **
   2  alpha         3.9791        2.8776        .16562        .10132E-06
   3  Normalizat    1.0530        .32807E-02    .22108E-03   -.51424E-07
   4  Prefactor     .85209        .36191E-02    .26691E-03    .42594E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.97911
  Normalizat = 1.05297
  Prefactor  = 0.852089
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.668     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      335 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8084        .14574E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.9791        3.5780        .33124E-01    .63310    
   3  Normalizat    1.0530        .65972E-02    .88430E-05   -.91276    
   4  Prefactor     .85209        .72757E-02    .10676E-04   -.97836    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.0988e-13
Minuit parameter uncertainties:
  1  3.45899e-07
  2  272.994
  3  0.00659722
  4  0.00727568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/962627': 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) = 6234.66757215
delta logL = 1.49066991071e-05

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  3.459e-07  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.979e+00  2.730e+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.521e-01  7.276e-03  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.053e+00  6.597e-03  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/962627/cmap_HighResolution_583027201_583286401_4FGL_J0157.7-4614_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-05', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-08-14 23:11:49.403259', job_id='962627', GAL2='0.85', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1629007909.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.49e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1326' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:11:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 962627: <4FGL_J0157.7-4614_daily_bin1326> in cluster <slac> Done

Job <4FGL_J0157.7-4614_daily_bin1326> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 14 22:55:51 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 22:58:41 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:58:41 2021
Terminated at Sat Aug 14 23:11:50 2021
Results reported at Sat Aug 14 23:11:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1326 29.4353 -46.2431 583027201 583286401 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 :                                   766.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             374.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            959 sec.

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

