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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1479
RA = 29.4353, Dec = -46.2431
tmin = 622684801, tmax = 622944001
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='964233', job_status='RUN', time_executed='2021-08-14 23:03:10.046330', time_epoch_executed='1629007390.05' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964233/ft1_4FGL_J0157.7-4614_daily_bin1479.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964233/ft2_4FGL_J0157.7-4614_daily_bin1479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964233/ft1_4FGL_J0157.7-4614_daily_bin1479.fits outfile=/scratch/kocevski/964233/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1479.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=622684801.0 tmax=622944001.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 5.93
user 5.00
sys 0.86

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964233/ft1_filtered_4FGL_J0157.7-4614_daily_bin1479.fits" evtable="EVENTS" scfile=/scratch/kocevski/964233/ft2_4FGL_J0157.7-4614_daily_bin1479.fits sctable="SC_DATA" outfile=/scratch/kocevski/964233/ltcube_622684801_622944001_4FGL_J0157.7-4614_daily_bin1479.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/964233/ft2_4FGL_J0157.7-4614_daily_bin1479.fits
.....................!
real 15.41
user 14.30
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964233/ft1_filtered_4FGL_J0157.7-4614_daily_bin1479.fits evtable="EVENTS" scfile=/scratch/kocevski/964233/ft2_4FGL_J0157.7-4614_daily_bin1479.fits sctable="SC_DATA" expcube=/scratch/kocevski/964233/ltcube_622684801_622944001_4FGL_J0157.7-4614_daily_bin1479.fits outfile=/scratch/kocevski/964233/expmap_622684801_622944001_4FGL_J0157.7-4614_daily_bin1479.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/964233/ltcube_622684801_622944001_4FGL_J0157.7-4614_daily_bin1479.fits
.....................!
real 195.09
user 188.49
sys 5.62

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/964233/ft1_filtered_4FGL_J0157.7-4614_daily_bin1479.fits scfile=/scratch/kocevski/964233/ft2_4FGL_J0157.7-4614_daily_bin1479.fits outfile=/scratch/kocevski/964233/cmap_622684801_622944001_4FGL_J0157.7-4614_daily_bin1479.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.19
user 0.37
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964233/ft1_filtered_4FGL_J0157.7-4614_daily_bin1479.fits scfile=/scratch/kocevski/964233/ft2_4FGL_J0157.7-4614_daily_bin1479.fits outfile=/scratch/kocevski/964233/cmap_HighResolution_622684801_622944001_4FGL_J0157.7-4614_daily_bin1479.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.16
user 0.37
sys 0.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964233/ft1_filtered_4FGL_J0157.7-4614_daily_bin1479.fits evtable="EVENTS" scfile=/scratch/kocevski/964233/ft2_4FGL_J0157.7-4614_daily_bin1479.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964233/Model_4FGL_J0157.7-4614_daily_bin1479.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/964233/ft1_filtered_4FGL_J0157.7-4614_daily_bin1479.fits.....................!
real 90.23
user 87.64
sys 2.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.961       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6020       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7163       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45619       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .30409E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3387       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29364E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.315       1.0000         .10000E-03   10000.    
    12 'norm      '    10.595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20268E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.849       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4242       1.0000         .10000E-03   10000.    
    16 'norm      '    .55099E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.7404       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87334       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2065       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=   4573.401     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     2642 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.647        .18142E-02** at limit **
   2  Prefactor     .10000E-03    14.092        .18142E-02** at limit **
   3  norm          12.960        10.244        .11126E-03    .51907E-04
   4  Prefactor     6.6011        23.587        .15618E-03    .11720E-04
   5  Prefactor     1.7161        3.9815        .19997E-03   -.44685E-04
   6  Prefactor     .47961        57.465        .41085E-02    .61843E-04
   7  norm          .10000E-03    22.492        .18142E-02** at limit **
   8  norm          .10000E-03    10.021        .27422E-02** at limit **
   9  Prefactor     8.3376        14.194        .13883E-03    .32101E-04
  10  Prefactor     .10001E-03    43.036        .10698    ** at limit **
  11  Prefactor     11.315        7.6163        .11910E-03    .64911E-04
  12  norm          10.595        2.9385        .54562E-04    .36276E-03
  13  Prefactor     .10000E-03    78.179        .36285E-03** at limit **
  14  Prefactor     15.821        34.834        .10061E-03   -.34240E-04
  15  norm          1.4242        1.5849        .88494E-04   -.43808E-04
  16  norm          .10002E-03    19.298        .19434E-02** at limit **
  17  Prefactor     .10000E-03    6.3054        .16542E-02** at limit **
  18  Prefactor     .10000E-03    42.040        .18142E-02** at limit **
  19  norm          1.7408        1.2397        .61069E-04   -.21502E-03
  20  Normalizat    .87344        .24848        .26680E-03    .21523E-03
  21  Prefactor     1.2064        .26295        .25198E-03    .16828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.9601
  Prefactor  = 6.60106
  Prefactor  = 1.71611
  Prefactor  = 0.479608
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 8.3376
  Prefactor  = 0.000100006
  Prefactor  = 11.3152
  norm       = 10.5946
  Prefactor  = 0.000100004
  Prefactor  = 15.8215
  norm       = 1.42416
  norm       = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.74079
  Normalizat = 0.873438
  Prefactor  = 1.20642
 **********
 **   18 **HESSE 
 **********

 FCN=   4573.401     FROM HESSE     STATUS=OK           307 CALLS     2949 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.655        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.093        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.960        10.244        .44505E-05   -1.4988    
   4  Prefactor     6.6011        23.586        .62472E-05   -1.5194    
   5  Prefactor     1.7161        3.9812        .79989E-05   -1.5446    
   6  Prefactor     .47961        56.491        .16434E-03   -1.5569    
   7  norm          .10000E-03    22.492        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.070        .54844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.3376        14.192        .55531E-05   -1.5130    
  10  Prefactor     .10001E-03    39.923        .11142       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.315        7.6155        .47639E-05   -1.5035    
  12  norm          10.595        2.9329        .21825E-05   -1.5057    
  13  Prefactor     .10000E-03    78.180        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.821        34.832        .40242E-05   -1.4912    
  15  norm          1.4242        1.5848        .35398E-05   -1.5469    
  16  norm          .10002E-03    19.557        .38868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3064        .33084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.7408        1.2395        .24428E-05   -1.5444    
  20  Normalizat    .87344        .24846        .10672E-04   -.97400    
  21  Prefactor     1.2064        .26322        .10079E-04   -.86134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77198e-09
Minuit parameter uncertainties:
  1  0.000377545
  2  1.3659e-06
  3  10.2453
  4  23.6191
  5  3.98177
  6  10.4193
  7  5.50742e-05
  8  0.000200675
  9  14.1976
  10  0.000993143
  11  7.61612
  12  2.93296
  13  0.0010582
  14  34.8772
  15  1.58484
  16  0.00138952
  17  7.5685e-06
  18  0.000329485
  19  1.23955
  20  0.248786
  21  0.263511
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  2.007e-04  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.206e+00  2.635e-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:  8.734e-01  2.488e-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: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964233/likelihoodResults_622684801_622944001_4FGL_J0157.7-4614_daily_bin1479.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) = 4573.40110733
delta logL = -0.000474657682389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4571.34528425
delta logL = 2.05534841957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48422       1.0000         .10000E-03   10000.    
     2 'alpha     '    .15957E-05   1.0000          .0000       5.0000    
     3 'Normalizat'    .86789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2051       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=   4571.345     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      296 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48425        1.0463        .10932E-01   -.43151E-03
   2  alpha         .24913E-11    3.7733        .46349    ** at limit **
   3  Normalizat    .86657        .19995        .44490E-01   -.13334E-04
   4  Prefactor     1.2063        .21922        .56911E-01    .28188E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.484252
  alpha      = 2.49134e-12
  Normalizat = 0.866573
  Prefactor  = 1.20634
 **********
 **   18 **HESSE 
 **********

 FCN=   4571.345     FROM HESSE     STATUS=OK            37 CALLS      333 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48425        .64675        .46398E-03   -1.5569    
   2  alpha         .24913E-11    .97375        .49039       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .86657        .23629        .26732E-03   -.97645    
   4  Prefactor     1.2063        .25905        .25165E-03   -.86136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64322e-11
Minuit parameter uncertainties:
  1  0.64676
  2  3.22621e-06
  3  0.236569
  4  0.259321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964233': 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) = 4571.34526855
delta logL = 2.05536412312

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  4.843e-01  6.468e-01  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.491e-12  3.226e-06  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.206e+00  2.593e-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:  8.666e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.11
Ra Dec: 29.435 -46.243
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.99e-09 +/- 5.33e-09
Energy Flux (Free Index): 5.40e-05 +/- 7.22e-05

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/964233/cmap_HighResolution_622684801_622944001_4FGL_J0157.7-4614_daily_bin1479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-05', comment='SUCCESS', energy_flux2='5.40e-05', dlogl='2.06e+00', photon_flux2='3.99e-09', job_status='DONE', time_completed='2021-08-14 23:15:29.679576', photon_index_error2='0.00', photon_index2='0.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='7.09e-08', energy_flux_error2='7.22e-05', EG='0.87', time_epoch_completed='1629008129.68', return_code='0', job_id='964233', GAL2='1.21', EG2='0.87', return_code2='0', photon_flux_error2='5.33e-09', ts2='4.11', photon_index='2.24' WHERE bin_id='1479' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:15:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 964233: <4FGL_J0157.7-4614_daily_bin1479> in cluster <slac> Done

Job <4FGL_J0157.7-4614_daily_bin1479> 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) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 23:01:46 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:46 2021
Terminated at Sat Aug 14 23:15:30 2021
Results reported at Sat Aug 14 23:15:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1479 29.4353 -46.2431 622684801 622944001 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 :                                   661.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            885 sec.

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

