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


Performing analysis on: 4FGL_J0501.2-0158_daily_bin1056
RA = 75.3023, Dec = -1.9749
tmin = 513043201, tmax = 513302401
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='899953', job_status='RUN', time_executed='2021-08-21 16:49:32.913259', time_epoch_executed='1629589772.91' WHERE source_name='4FGL J0501.2-0158' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899953

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899953/ft1_4FGL_J0501.2-0158_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899953/ft2_4FGL_J0501.2-0158_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899953/ft1_4FGL_J0501.2-0158_daily_bin1056.fits outfile=/scratch/kocevski/899953/ft1_filteredMKT_4FGL_J0501.2-0158_daily_bin1056.fits ra=75.3023 dec=-1.9749 rad=12.0 tmin=513043201.0 tmax=513302401.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.33
user 6.10
sys 2.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/899953/ft2_4FGL_J0501.2-0158_daily_bin1056.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899953/ft2_4FGL_J0501.2-0158_daily_bin1056.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/899953/ft1_filteredMKT_4FGL_J0501.2-0158_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/899953/ft1_filtered_4FGL_J0501.2-0158_daily_bin1056.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 2.47
user 0.33
sys 2.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899953/ft1_filtered_4FGL_J0501.2-0158_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/899953/ft2_4FGL_J0501.2-0158_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/899953/ltcube_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.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/899953/ft2_4FGL_J0501.2-0158_daily_bin1056.fits
.....................!
real 14.17
user 11.77
sys 2.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899953/ft1_filtered_4FGL_J0501.2-0158_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/899953/ft2_4FGL_J0501.2-0158_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/899953/ltcube_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.fits outfile=/scratch/kocevski/899953/expmap_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.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/899953/ltcube_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.fits
.....................!
real 193.40
user 185.80
sys 7.09

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
Added 143 point sources and 0 extended sources

Setting source of interest to:
4FGL J0501.2-0158 @ 75.3023 -1.9749

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/899953/ft1_filtered_4FGL_J0501.2-0158_daily_bin1056.fits scfile=/scratch/kocevski/899953/ft2_4FGL_J0501.2-0158_daily_bin1056.fits outfile=/scratch/kocevski/899953/cmap_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.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=75.3023 yref=-1.9749 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 2.43
user 0.35
sys 2.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899953/ft1_filtered_4FGL_J0501.2-0158_daily_bin1056.fits scfile=/scratch/kocevski/899953/ft2_4FGL_J0501.2-0158_daily_bin1056.fits outfile=/scratch/kocevski/899953/cmap_HighResolution_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.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=75.3023 yref=-1.9749 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 2.44
user 0.38
sys 2.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/899953/ft1_filtered_4FGL_J0501.2-0158_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/899953/ft2_4FGL_J0501.2-0158_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/899953/Model_4FGL_J0501.2-0158_daily_bin1056.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 GAL_V02
Working on...
/scratch/kocevski/899953/ft1_filtered_4FGL_J0501.2-0158_daily_bin1056.fits.....................!
real 109.22
user 105.47
sys 3.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/899953/ft1_filtered_4FGL_J0501.2-0158_daily_bin1056.fits', '/scratch/kocevski/899953/ft2_4FGL_J0501.2-0158_daily_bin1056.fits', expMap='/scratch/kocevski/899953/expmap_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.fits', expCube='/scratch/kocevski/899953/ltcube_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/899953/Model_4FGL_J0501.2-0158_daily_bin1056.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0501.2-0158'

4FGL J0501.2-0158
   Spectrum: LogParabola
191         norm:  4.340e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
192        alpha:  2.268e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
193         beta:  8.821e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
194           Eb:  4.539e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/899953/ft1_filtered_4FGL_J0501.2-0158_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/899953/ft2_4FGL_J0501.2-0158_daily_bin1056.fits
Exposure map: /scratch/kocevski/899953/expmap_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.fits
Exposure cube: /scratch/kocevski/899953/ltcube_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/899953/Model_4FGL_J0501.2-0158_daily_bin1056.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) = 5822.29428676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9136       1.0000         .10000E-03   10000.    
     3 'norm      '    15.571       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0871       1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.233       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12547E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1517       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.512       1.0000         .10000E-03   10000.    
    16 'norm      '    .83544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.146       1.0000         .10000E-03   10000.    
    19 'norm      '    18.248       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.043       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .84237       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5822.292     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2542 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.835        .22234E-05** at limit **
   2  norm          2.9135        2.9891        .83015E-07    .23911E-03
   3  norm          15.572        12.723        .13384E-07    .36853E-04
   4  norm          .10000E-03    7.9912        .78960E-05** at limit **
   5  norm          .10000E-03    .57414        .48048E-07** at limit **
   6  Prefactor     3.0842        1.9544        .97631E-08   -.10298E-03
   7  Prefactor     51.228        29.210       -.24509E-05   -.20538E-04
   8  Prefactor     .10000E-03    67.926       -.30090E-05** at limit **
   9  Prefactor     .10000E-03    8.1578       -.70923E-05** at limit **
  10  norm          .10000E-03    2.4211        .16585E-06** at limit **
  11  norm          1.1512        2.0109       -.17107E-06   -.52526E-03
  12  Prefactor     .10000E-03    7.2573       -.99417E-06** at limit **
  13  Prefactor     .10000E-03    33.703        .35415E-05** at limit **
  14  norm          .10000E-03    2.0224        .11735E-07** at limit **
  15  Prefactor     14.516        38.982        .51844E-05   -.38346E-05
  16  norm          .83534        .67608       -.18162E-06   -.50375E-03
  17  Prefactor     .10000E-03    19.128       -.34877E-05** at limit **
  18  norm          12.146        5.7014        .41482E-06   -.43932E-05
  19  norm          18.247        31.255       -.10363E-05    .75531E-06
  20  Prefactor     38.043        39.530        .33088E-06    .20353E-05
  21  Prefactor     .10000E-03    2.5192        .39575E-08** at limit **
  22  Normalizat    .84223        .26022        .61407E-07    .45626E-04
  23  Prefactor     .98075        .88027E-01    .55539E-07    .99007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.9135
  norm       = 15.5717
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.08421
  Prefactor  = 51.2277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.15123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5158
  norm       = 0.835342
  Prefactor  = 0.0001
  norm       = 12.1458
  norm       = 18.2467
  Prefactor  = 38.0431
  Prefactor  = 0.0001
  Normalizat = 0.842229
  Prefactor  = 0.980751
 **********
 **   18 **HESSE 
 **********

 FCN=   5822.292     FROM HESSE     STATUS=OK           372 CALLS     2914 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9135        2.9929        .13012E-03   -1.5367    
   3  norm          15.572        12.739        .10150E-03   -1.4919    
   4  norm          .10000E-03    7.9925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0267        .11132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0842        1.9392        .81438E-04   -1.5357    
   7  Prefactor     51.228        29.145        .56030E-04   -1.4275    
   8  Prefactor     .10000E-03    68.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.4799        .23098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1512        1.9627        .13665E-03   -1.5493    
  12  Prefactor     .10000E-03    7.3824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1007        .21136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.516        38.455        .10514E-03   -1.4946    
  16  norm          .83534        .66178        .50783E-04   -1.5525    
  17  Prefactor     .10000E-03    19.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.146        5.6969        .11494E-03   -1.5011    
  19  norm          18.247        31.256        .93760E-04   -1.4853    
  20  Prefactor     38.043        39.528        .64982E-04   -1.4474    
  21  Prefactor     .10000E-03    2.5219        .11827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .84223        .27233        .44599E-03   -.98521    
  23  Prefactor     .98075        .93610E-01    .14854E-03   -.93374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83878e-10
Minuit parameter uncertainties:
  1  1.18111e-06
  2  2.99308
  3  12.741
  4  4.7715e-06
  5  3.41338e-06
  6  1.93923
  7  29.1532
  8  7.0219e-05
  9  2.52759e-05
  10  2.6956e-05
  11  1.96283
  12  3.97297e-06
  13  0.000116381
  14  1.97666e-06
  15  38.5209
  16  0.661785
  17  6.74839e-06
  18  5.69717
  19  31.2839
  20  39.5556
  21  3.14619e-07
  22  0.272778
  23  0.0936253
Done.

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

Extracting fit parameters...

4FGL J0501.2-0158
   Spectrum: LogParabola
191         norm:  1.000e-04  1.977e-06  1.000e-04  1.000e+04 ( 1.000e-11)
192        alpha:  2.268e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
193         beta:  8.821e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
194           Eb:  4.539e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
476    Prefactor:  9.808e-01  9.363e-02  0.000e+00  1.000e+01 ( 1.000e+00)
477        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
478        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
475   Normalization:  8.422e-01  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 75.302 -1.975
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899953/likelihoodResults_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.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) = 5822.29402313
delta logL = -0.00227250433272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5822.12591415
delta logL = 0.165836466404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38773       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1294       1.0000          .0000       5.0000    
     3 'Normalizat'    .77563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99212       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5822.126     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      362 TOTAL
                     EDM=   .91E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38973        1.4356        .75863E-04   -.26525E-04
   2  alpha         4.1279        4.1619        .13143E-01   -.36848E-06
   3  Normalizat    .77526        .28168        .46389E-03    .24507E-06
   4  Prefactor     .99215        .95227E-01    .14780E-03    .28461E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.389732
  alpha      = 4.12789
  Normalizat = 0.775256
  Prefactor  = 0.99215
 **********
 **   18 **HESSE 
 **********

 FCN=   5822.126     FROM HESSE     STATUS=OK            25 CALLS      387 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38973        1.2339        .30345E-05   -1.5583    
   2  alpha         4.1279        3.9570        .52573E-03    .70911    
   3  Normalizat    .77526        .28185        .18555E-04   -1.0099    
   4  Prefactor     .99215        .95284E-01    .59119E-05   -.92992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54381e-13
Minuit parameter uncertainties:
  1  1.23402
  2  2.37063
  3  0.282382
  4  0.0953004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899953': 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) = 5822.1259116
delta logL = 0.165839021405

Extracting fit parameters...

4FGL J0501.2-0158
   Spectrum: LogParabola
191         norm:  3.897e-01  1.234e+00  1.000e-04  1.000e+04 ( 1.000e-11)
192        alpha:  4.128e+00  2.371e+00  0.000e+00  5.000e+00 ( 1.000e+00)
193         beta:  8.821e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
194           Eb:  4.539e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
476    Prefactor:  9.922e-01  9.530e-02  0.000e+00  1.000e+01 ( 1.000e+00)
477        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
478        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
475   Normalization:  7.753e-01  2.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 75.302 -1.975

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/899953/cmap_HighResolution_513043201_513302401_4FGL_J0501.2-0158_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-05', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-08-21 17:00:47.691511', job_id='899953', GAL2='0.99', fit_tolerance='1e-08', EG2='0.78', EG='0.84', time_epoch_completed='1629590447.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.66e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1056' AND source_name='4FGL J0501.2-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 17:00:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 899953: <4FGL_J0501.2-0158_daily_bin1056> in cluster <slac> Done

Job <4FGL_J0501.2-0158_daily_bin1056> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 21 16:45:29 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 16:45:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 16:45:30 2021
Terminated at Sat Aug 21 17:00:48 2021
Results reported at Sat Aug 21 17:00:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0501.2-0158_daily_bin1056 75.3023 -1.9749 513043201 513302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0501.2-0158 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   699.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            919 sec.

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

