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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1475
RA = 29.4353, Dec = -46.2431
tmin = 621648001, tmax = 621907201
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='964227', job_status='RUN', time_executed='2021-08-14 23:02:49.733393', time_epoch_executed='1629007369.73' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964227

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964227/ft1_4FGL_J0157.7-4614_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964227/ft2_4FGL_J0157.7-4614_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964227/ft1_4FGL_J0157.7-4614_daily_bin1475.fits outfile=/scratch/kocevski/964227/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1475.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=621648001.0 tmax=621907201.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 8.05
user 5.05
sys 2.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964227/ft2_4FGL_J0157.7-4614_daily_bin1475.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/964227/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1475.fits evtable="EVENTS" outfile="/scratch/kocevski/964227/ft1_filtered_4FGL_J0157.7-4614_daily_bin1475.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 3.32
user 0.35
sys 2.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964227/ft1_filtered_4FGL_J0157.7-4614_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/964227/ft2_4FGL_J0157.7-4614_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/964227/ltcube_621648001_621907201_4FGL_J0157.7-4614_daily_bin1475.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/964227/ft2_4FGL_J0157.7-4614_daily_bin1475.fits
.....................!
real 17.19
user 13.87
sys 3.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964227/ft1_filtered_4FGL_J0157.7-4614_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/964227/ft2_4FGL_J0157.7-4614_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/964227/ltcube_621648001_621907201_4FGL_J0157.7-4614_daily_bin1475.fits outfile=/scratch/kocevski/964227/expmap_621648001_621907201_4FGL_J0157.7-4614_daily_bin1475.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/964227/ltcube_621648001_621907201_4FGL_J0157.7-4614_daily_bin1475.fits
.....................!
real 194.87
user 185.35
sys 8.93

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/964227/ft1_filtered_4FGL_J0157.7-4614_daily_bin1475.fits scfile=/scratch/kocevski/964227/ft2_4FGL_J0157.7-4614_daily_bin1475.fits outfile=/scratch/kocevski/964227/cmap_621648001_621907201_4FGL_J0157.7-4614_daily_bin1475.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 3.06
user 0.38
sys 2.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964227/ft1_filtered_4FGL_J0157.7-4614_daily_bin1475.fits scfile=/scratch/kocevski/964227/ft2_4FGL_J0157.7-4614_daily_bin1475.fits outfile=/scratch/kocevski/964227/cmap_HighResolution_621648001_621907201_4FGL_J0157.7-4614_daily_bin1475.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 3.16
user 0.38
sys 2.69

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964227/ft1_filtered_4FGL_J0157.7-4614_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/964227/ft2_4FGL_J0157.7-4614_daily_bin1475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964227/Model_4FGL_J0157.7-4614_daily_bin1475.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/964227/ft1_filtered_4FGL_J0157.7-4614_daily_bin1475.fits.....................!
real 123.47
user 117.98
sys 4.87

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58677E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.3418       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29260E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8261       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.183       1.0000         .10000E-03   10000.    
     7 'norm      '    51.788       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19311E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12000       1.0000         .10000E-03   10000.    
    12 'norm      '    9.2684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28397E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15226E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5504       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0609       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .93897       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5848       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4390       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .48925       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=   6065.873     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2008 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2960        .46980E-06** at limit **
   2  Prefactor     .10000E-03    21.542       -.75302E-05** at limit **
   3  norm          4.3475        7.7178       -.37472E-06   -.17932E-03
   4  Prefactor     .10000E-03    8.9005       -.18692E-06** at limit **
   5  Prefactor     6.8281        3.7880       -.13556E-06   -.23299E-04
   6  Prefactor     11.210        7.6107       -.84941E-07    .10710E-03
   7  norm          51.944        46.323        .34992E-04    .39390E-04
   8  norm          2.3375        3.9036       -.42938E-06   -.52526E-03
   9  Prefactor     .10000E-03    3.4614       -.39262E-07** at limit **
  10  Prefactor     .10000E-03    7.9896        .63612E-06** at limit **
  11  Prefactor     .16494        3.3257       -.11493E-05   -.12578E-03
  12  norm          9.2591        2.3043       -.96136E-07    .22797E-02
  13  Prefactor     .10001E-03    9.3187        .15573E-05** at limit **
  14  Prefactor     .10000E-03    25.036        .12347E-05** at limit **
  15  norm          1.5508        1.4796       -.78668E-07   -.10411E-03
  16  norm          3.0615        3.1938        .13708E-05    .10514E-03
  17  Prefactor     .89837        5.3479       -.41602E-05    .96065E-03
  18  Prefactor     3.6413        68.036       -.10825E-03   -.55473E-05
  19  norm          .28856E-02    .36335        .10568E-06   -.54569E-03
  20  Normalizat    1.4391        .17309        .19900E-05    .40934E-03
  21  Prefactor     .48897        .18052       -.48127E-06    .33822E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.34749
  Prefactor  = 0.0001
  Prefactor  = 6.82811
  Prefactor  = 11.2099
  norm       = 51.9444
  norm       = 2.33748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.164935
  norm       = 9.25915
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 1.55078
  norm       = 3.06151
  Prefactor  = 0.898369
  Prefactor  = 3.6413
  norm       = 0.00288556
  Normalizat = 1.43911
  Prefactor  = 0.488971
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.873     FROM HESSE     STATUS=OK           333 CALLS     2341 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.884        .21076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.3475        7.7122        .19331E-03   -1.5291    
   4  Prefactor     .10000E-03    8.9252        .21400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8281        3.7909        .10913E-03   -1.5185    
   6  Prefactor     11.210        7.6065        .11980E-03   -1.5038    
   7  norm          51.944        46.369        .27865E-03   -1.4265    
   8  norm          2.3375        3.8820        .18678E-03   -1.5402    
   9  Prefactor     .10000E-03    3.4702        .14151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16494        38.390        .25187E-02   -1.5627    
  12  norm          9.2591        2.4012        .51380E-04   -1.5099    
  13  Prefactor     .10001E-03    42.148        .44879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5508        1.4677        .89759E-04   -1.5459    
  16  norm          3.0615        3.1852        .13519E-03   -1.5358    
  17  Prefactor     .89837        18.735        .33589E-02   -1.5518    
  18  Prefactor     3.6413        68.534        .21343E-03   -1.5326    
  19  norm          .28856E-02    .53409        .17158E-01   -1.5697    
  20  Normalizat    1.4391        .19709        .19911E-03   -.79504    
  21  Prefactor     .48897        .20514        .34407E-03   -1.1249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60259e-09
Minuit parameter uncertainties:
  1  1.00992e-05
  2  1.75232e-05
  3  7.71392
  4  1.04748e-05
  5  3.79106
  6  7.60711
  7  46.4011
  8  3.88244
  9  2.78755e-06
  10  1.50074e-06
  11  5.03439
  12  2.4012
  13  0.00154911
  14  2.92856e-05
  15  1.46773
  16  3.18541
  17  8.20767
  18  31.636
  19  0.077143
  20  0.197198
  21  0.205453
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  2.337e+00  3.882e+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:  4.890e-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.439e+00  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 29.435 -46.243
Photon Flux Upper Limit: 5.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964227/likelihoodResults_621648001_621907201_4FGL_J0157.7-4614_daily_bin1475.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) = 6065.87022261
delta logL = 0.00285967121999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6065.869979
delta logL = 0.00310327496572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4171       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1495       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48830       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=   6065.870     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      250 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4167        4.0202        .18932E-03    .36029E-05
   2  alpha         2.1492        1.1139        .30664E-01    .29004E-05
   3  Normalizat    1.4400        .19202        .19906E-03    .55170E-04
   4  Prefactor     .48831        .20399        .34429E-03    .17633E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.41673
  alpha      = 2.14924
  Normalizat = 1.44001
  Prefactor  = 0.488306
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.870     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4167        3.9573        .75729E-05   -1.5397    
   2  alpha         2.1492        1.0980        .12266E-02   -.14077    
   3  Normalizat    1.4400        .19208        .79624E-05   -.79478    
   4  Prefactor     .48831        .20406        .13772E-04   -1.1252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14011e-12
Minuit parameter uncertainties:
  1  3.95775
  2  1.1376
  3  0.192181
  4  0.204366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964227': 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) = 6065.86997897
delta logL = 0.0031033062769

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  2.417e+00  3.958e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.149e+00  1.138e+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:  4.883e-01  2.044e-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.440e+00  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
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/964227/cmap_HighResolution_621648001_621907201_4FGL_J0157.7-4614_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', job_status='DONE', photon_flux_upper_limit='5.93e-08', time_completed='2021-08-14 23:16:33.541639', job_id='964227', GAL2='0.49', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1629008193.54', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='3.10e-03', ts2='0.50', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1475' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:16:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 964227: <4FGL_J0157.7-4614_daily_bin1475> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1475 29.4353 -46.2431 621648001 621907201 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 :                                   783.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            949 sec.

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

