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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1445
RA = 29.4353, Dec = -46.2431
tmin = 613872001, tmax = 614131201
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='964176', job_status='RUN', time_executed='2021-08-14 23:02:52.012878', time_epoch_executed='1629007372.01' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964176

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964176/ft1_4FGL_J0157.7-4614_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964176/ft2_4FGL_J0157.7-4614_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964176/ft1_4FGL_J0157.7-4614_daily_bin1445.fits outfile=/scratch/kocevski/964176/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1445.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=613872001.0 tmax=614131201.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 2.28
user 1.69
sys 0.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964176/ft2_4FGL_J0157.7-4614_daily_bin1445.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/964176/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/964176/ft1_filtered_4FGL_J0157.7-4614_daily_bin1445.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.88
user 0.29
sys 0.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964176/ft1_filtered_4FGL_J0157.7-4614_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/964176/ft2_4FGL_J0157.7-4614_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/964176/ltcube_613872001_614131201_4FGL_J0157.7-4614_daily_bin1445.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/964176/ft2_4FGL_J0157.7-4614_daily_bin1445.fits
.....................!
real 11.70
user 10.86
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964176/ft1_filtered_4FGL_J0157.7-4614_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/964176/ft2_4FGL_J0157.7-4614_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/964176/ltcube_613872001_614131201_4FGL_J0157.7-4614_daily_bin1445.fits outfile=/scratch/kocevski/964176/expmap_613872001_614131201_4FGL_J0157.7-4614_daily_bin1445.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/964176/ltcube_613872001_614131201_4FGL_J0157.7-4614_daily_bin1445.fits
.....................!
real 156.55
user 151.44
sys 4.53

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/964176/ft1_filtered_4FGL_J0157.7-4614_daily_bin1445.fits scfile=/scratch/kocevski/964176/ft2_4FGL_J0157.7-4614_daily_bin1445.fits outfile=/scratch/kocevski/964176/cmap_613872001_614131201_4FGL_J0157.7-4614_daily_bin1445.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.90
user 0.32
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964176/ft1_filtered_4FGL_J0157.7-4614_daily_bin1445.fits scfile=/scratch/kocevski/964176/ft2_4FGL_J0157.7-4614_daily_bin1445.fits outfile=/scratch/kocevski/964176/cmap_HighResolution_613872001_614131201_4FGL_J0157.7-4614_daily_bin1445.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.93
user 0.34
sys 0.57

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964176/ft1_filtered_4FGL_J0157.7-4614_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/964176/ft2_4FGL_J0157.7-4614_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964176/Model_4FGL_J0157.7-4614_daily_bin1445.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/964176/ft1_filtered_4FGL_J0157.7-4614_daily_bin1445.fits.....................!
real 115.38
user 113.69
sys 1.46

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.209       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .30865E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.684       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.6368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34551       1.0000         .10000E-03   10000.    
    12 'norm      '    39.792       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7499       1.0000         .10000E-03   10000.    
    16 'norm      '    .54108       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.434       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .71518       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3282       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=   7355.785     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2212 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.211        23.045        .16299E-05   -.67573E-04
   2  Prefactor     .10000E-03    26.332       -.54984E-05** at limit **
   3  norm          .10001E-03    4.7004        .38347E-06** at limit **
   4  Prefactor     43.692        33.186        .74541E-05   -.20985E-03
   5  Prefactor     3.9904        4.5316       -.23692E-05   -.28305E-03
   6  Prefactor     .10004E-03    4.2600        .95973E-06** at limit **
   7  norm          .10000E-03    17.269       -.24726E-05** at limit **
   8  norm          4.6360        4.1821       -.29699E-06   -.24329E-03
   9  Prefactor     .10000E-03    7.5687       -.13190E-05** at limit **
  10  Prefactor     .10000E-03    9.8591       -.14245E-05** at limit **
  11  Prefactor     .34532        4.0002       -.12965E-05   -.25834E-03
  12  norm          39.790        3.7752        .38921E-07    .64041E-03
  13  Prefactor     .10000E-03    6.4244        .43635E-07** at limit **
  14  Prefactor     .10000E-03    8.4553        .24579E-05** at limit **
  15  norm          5.7500        2.2198        .93087E-08    .45248E-04
  16  norm          .54131        1.7106       -.10141E-05   -.17387E-02
  17  Prefactor     16.435        12.309        .27907E-06   -.65906E-04
  18  Prefactor     .10000E-03    18.415        .21330E-05** at limit **
  19  norm          .10000E-03    .40005       -.37126E-08** at limit **
  20  Normalizat    .71506        .17708       -.89481E-06    .17062E-05
  21  Prefactor     1.3282        .19214        .34020E-06   -.56761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2107
  Prefactor  = 0.000100001
  norm       = 0.000100006
  Prefactor  = 43.6917
  Prefactor  = 3.99043
  Prefactor  = 0.000100044
  norm       = 0.0001
  norm       = 4.63597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.34532
  norm       = 39.7899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.74998
  norm       = 0.54131
  Prefactor  = 16.4352
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.715063
  Prefactor  = 1.32817
 **********
 **   18 **HESSE 
 **********

 FCN=   7355.785     FROM HESSE     STATUS=OK           315 CALLS     2527 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.211        22.978        .86973E-04   -1.4787    
   2  Prefactor     .10000E-03    26.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    28.851        .35516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.692        32.318        .60656E-04   -1.4385    
   5  Prefactor     3.9904        4.5872        .18458E-03   -1.5308    
   6  Prefactor     .10004E-03    23.737        .32909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    17.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.6360        4.0647        .15690E-03   -1.5277    
   9  Prefactor     .10000E-03    7.6067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .34532        11.963        .32278E-02   -1.5590    
  12  norm          39.790        3.7135        .46622E-04   -1.4446    
  13  Prefactor     .10000E-03    6.4502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.4293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7500        2.2194        .76956E-04   -1.5228    
  16  norm          .54131        1.8175        .20445E-03   -1.5561    
  17  Prefactor     16.435        12.303        .98799E-04   -1.4897    
  18  Prefactor     .10000E-03    18.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .41482        .10565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .71506        .21224        .31333E-03   -1.0330    
  21  Prefactor     1.3282        .23205        .26664E-03   -.82473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48917e-08
Minuit parameter uncertainties:
  1  22.9878
  2  0.000252465
  3  0.000830618
  4  32.3309
  5  4.58762
  6  0.00205385
  7  8.41992e-05
  8  4.06491
  9  3.07919e-05
  10  3.57419e-05
  11  4.06529
  12  3.71352
  13  1.93051e-06
  14  5.80649e-05
  15  2.21938
  16  1.81765
  17  12.305
  18  6.67564e-05
  19  2.20083e-07
  20  0.212485
  21  0.232233
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  4.636e+00  4.065e+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:  1.328e+00  2.322e-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:  7.151e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.93
Ra Dec: 29.435 -46.243
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.27e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 8.96e-06 +/- 7.86e-06

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) = 7354.41475187
delta logL = 1.37022912138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7353.82994186
delta logL = 1.95503913609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71000       1.0000         .10000E-03   10000.    
     2 'alpha     '    .26660       1.0000          .0000       5.0000    
     3 'Normalizat'    .72466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3316       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=   7353.830     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      224 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70971        1.1824        .12100E-01   -.59582E-03
   2  alpha         .26625        .83266        .50000        .43687E-04
   3  Normalizat    .72474        .16912        .70399E-01    .26799E-04
   4  Prefactor     1.3315        .19093        .60268E-01    .50456E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.709711
  alpha      = 0.266252
  Normalizat = 0.724744
  Prefactor  = 1.33147
 **********
 **   18 **HESSE 
 **********

 FCN=   7353.830     FROM HESSE     STATUS=OK            35 CALLS      259 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70971        1.5123        .64630E-03   -1.5539    
   2  alpha         .26625        .81822        .38472E-01   -1.1051    
   3  Normalizat    .72474        .20382        .31156E-03   -1.0292    
   4  Prefactor     1.3315        .23046        .26651E-03   -.82376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97553e-11
Minuit parameter uncertainties:
  1  1.51238
  2  0.916767
  3  0.204036
  4  0.230641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964176': 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) = 7353.82994164
delta logL = 1.95503934958

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  7.097e-01  1.512e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.663e-01  9.168e-01  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.331e+00  2.306e-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:  7.247e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.83
Ra Dec: 29.435 -46.243
Photon Index (Free Index): 0.27 +/- 0.92
Photon Flux (Free Index): 3.57e-09 +/- 3.87e-09
Energy Flux (Free Index): 3.23e-05 +/- 4.74e-05

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/964176/cmap_HighResolution_613872001_614131201_4FGL_J0157.7-4614_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.27e-08', energy_flux2='3.23e-05', photon_flux_error='1.99e-08', dlogl='1.96e+00', energy_flux='8.96e-06', photon_flux2='3.57e-09', job_status='DONE', time_completed='2021-08-14 23:13:51.062552', photon_index_error2='0.92', photon_index2='0.27', ts='5.93', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='4.74e-05', EG='0.72', time_epoch_completed='1629008031.06', return_code='0', job_id='964176', GAL2='1.33', EG2='0.72', return_code2='0', energy_flux_error='7.86e-06', photon_flux_error2='3.87e-09', ts2='9.83', photon_index='2.24' WHERE bin_id='1445' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:13:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 964176: <4FGL_J0157.7-4614_daily_bin1445> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1445 29.4353 -46.2431 613872001 614131201 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 :                                   600.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            790 sec.

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

