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


Performing analysis on: 4FGL_J0501.2-0158_daily_bin972
RA = 75.3023, Dec = -1.9749
tmin = 491270401, tmax = 491529601
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='899822', job_status='RUN', time_executed='2021-08-21 16:45:48.193935', time_epoch_executed='1629589548.19' WHERE source_name='4FGL J0501.2-0158' and cadence='daily' and bin_id='972'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899822/ft1_4FGL_J0501.2-0158_daily_bin972.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899822/ft2_4FGL_J0501.2-0158_daily_bin972.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899822/ft1_4FGL_J0501.2-0158_daily_bin972.fits outfile=/scratch/kocevski/899822/ft1_filteredMKT_4FGL_J0501.2-0158_daily_bin972.fits ra=75.3023 dec=-1.9749 rad=12.0 tmin=491270401.0 tmax=491529601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.50
user 3.35
sys 1.10

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899822/ft2_4FGL_J0501.2-0158_daily_bin972.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/899822/ft1_filteredMKT_4FGL_J0501.2-0158_daily_bin972.fits evtable="EVENTS" outfile="/scratch/kocevski/899822/ft1_filtered_4FGL_J0501.2-0158_daily_bin972.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.38
user 0.32
sys 1.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899822/ft1_filtered_4FGL_J0501.2-0158_daily_bin972.fits" evtable="EVENTS" scfile=/scratch/kocevski/899822/ft2_4FGL_J0501.2-0158_daily_bin972.fits sctable="SC_DATA" outfile=/scratch/kocevski/899822/ltcube_491270401_491529601_4FGL_J0501.2-0158_daily_bin972.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/899822/ft2_4FGL_J0501.2-0158_daily_bin972.fits
.....................!
real 13.08
user 11.65
sys 1.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899822/ft1_filtered_4FGL_J0501.2-0158_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/899822/ft2_4FGL_J0501.2-0158_daily_bin972.fits sctable="SC_DATA" expcube=/scratch/kocevski/899822/ltcube_491270401_491529601_4FGL_J0501.2-0158_daily_bin972.fits outfile=/scratch/kocevski/899822/expmap_491270401_491529601_4FGL_J0501.2-0158_daily_bin972.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/899822/ltcube_491270401_491529601_4FGL_J0501.2-0158_daily_bin972.fits
.....................!
real 194.70
user 188.34
sys 5.96

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/899822/ft1_filtered_4FGL_J0501.2-0158_daily_bin972.fits scfile=/scratch/kocevski/899822/ft2_4FGL_J0501.2-0158_daily_bin972.fits outfile=/scratch/kocevski/899822/cmap_491270401_491529601_4FGL_J0501.2-0158_daily_bin972.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 1.44
user 0.37
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899822/ft1_filtered_4FGL_J0501.2-0158_daily_bin972.fits scfile=/scratch/kocevski/899822/ft2_4FGL_J0501.2-0158_daily_bin972.fits outfile=/scratch/kocevski/899822/cmap_HighResolution_491270401_491529601_4FGL_J0501.2-0158_daily_bin972.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 1.40
user 0.41
sys 0.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/899822/ft1_filtered_4FGL_J0501.2-0158_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/899822/ft2_4FGL_J0501.2-0158_daily_bin972.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/899822/Model_4FGL_J0501.2-0158_daily_bin972.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/899822/ft1_filtered_4FGL_J0501.2-0158_daily_bin972.fits.....................!
real 214.84
user 212.09
sys 2.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/899822/ft1_filtered_4FGL_J0501.2-0158_daily_bin972.fits', '/scratch/kocevski/899822/ft2_4FGL_J0501.2-0158_daily_bin972.fits', expMap='/scratch/kocevski/899822/expmap_491270401_491529601_4FGL_J0501.2-0158_daily_bin972.fits', expCube='/scratch/kocevski/899822/ltcube_491270401_491529601_4FGL_J0501.2-0158_daily_bin972.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/899822/Model_4FGL_J0501.2-0158_daily_bin972.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/899822/ft1_filtered_4FGL_J0501.2-0158_daily_bin972.fits
Spacecraft file(s): /scratch/kocevski/899822/ft2_4FGL_J0501.2-0158_daily_bin972.fits
Exposure map: /scratch/kocevski/899822/expmap_491270401_491529601_4FGL_J0501.2-0158_daily_bin972.fits
Exposure cube: /scratch/kocevski/899822/ltcube_491270401_491529601_4FGL_J0501.2-0158_daily_bin972.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/899822/Model_4FGL_J0501.2-0158_daily_bin972.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) = 12305.507795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    40.438       1.0000         .10000E-03   10000.    
     4 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39976       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0729       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .19406E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0958       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6628       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18881E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1572       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.546       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4955       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.719       1.0000         .10000E-03   10000.    
    18 'norm      '    9.9087       1.0000         .10000E-03   10000.    
    19 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92249       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0100       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=   12305.46     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2611 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8042       -.74256E-06** at limit **
   2  norm          .10000E-03    1.3379        .98960E-07** at limit **
   3  norm          40.440        12.755       -.80146E-07   -.17513E-03
   4  norm          .10000E-03    12.599       -.20230E-06** at limit **
   5  norm          .10000E-03    .45502        .69898E-06** at limit **
   6  Prefactor     .40060        1.0371        .10627E-05   -.14094E-03
   7  Prefactor     27.294        23.655       -.22521E-05   -.38814E-03
   8  Prefactor     8.0505        43.127       -.33889E-04   -.26135E-03
   9  Prefactor     .10000E-03    2.7683        .54801E-07** at limit **
  10  norm          .10000E-03    1.0805        .55560E-06** at limit **
  11  norm          2.0962        1.3918        .23497E-06   -.25446E-03
  12  Prefactor     5.6680        6.2524       -.25965E-05   -.47101E-03
  13  Prefactor     .10001E-03    27.465       -.22897E-05** at limit **
  14  norm          2.1573        1.4352        .15235E-06   -.15372E-03
  15  Prefactor     25.578        39.327        .31200E-04   -.62749E-04
  16  norm          3.4935        1.0783       -.11161E-05    .81824E-03
  17  Prefactor     15.746        19.592       -.74818E-05   -.24711E-04
  18  norm          9.9126        5.1080       -.62735E-06   -.60124E-03
  19  norm          .10000E-03    13.987        .55410E-06** at limit **
  20  Prefactor     .10000E-03    8.7775        .67054E-06** at limit **
  21  Prefactor     .10000E-03    2.6552       -.30358E-07** at limit **
  22  Normalizat    .92228        .19357        .21611E-05   -.49631E-03
  23  Prefactor     1.0101        .61042E-01   -.62265E-07   -.74812E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 40.4404
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.400595
  Prefactor  = 27.2939
  Prefactor  = 8.0505
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 2.09618
  Prefactor  = 5.66803
  Prefactor  = 0.000100006
  norm       = 2.15733
  Prefactor  = 25.5777
  norm       = 3.49346
  Prefactor  = 15.7456
  norm       = 9.9126
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.922281
  Prefactor  = 1.01006
 **********
 **   18 **HESSE 
 **********

 FCN=   12305.46     FROM HESSE     STATUS=OK           370 CALLS     2981 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.6717        .24914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          40.440        12.777        .63034E-04   -1.4435    
   4  norm          .10000E-03    12.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0158        .13965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .40060        .96403        .15689E-03   -1.5581    
   7  Prefactor     27.294        22.232        .76738E-04   -1.4663    
   8  Prefactor     8.0505        39.338        .14111E-03   -1.5140    
   9  Prefactor     .10000E-03    2.7803        .18019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.3628        .20744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0962        1.3946        .10247E-03   -1.5418    
  12  Prefactor     5.6680        6.2287        .16880E-03   -1.5232    
  13  Prefactor     .10001E-03    27.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1573        1.4333        .10340E-03   -1.5414    
  15  Prefactor     25.578        38.979        .79258E-04   -1.4696    
  16  norm          3.4935        1.0841        .48327E-04   -1.5334    
  17  Prefactor     15.746        19.532        .10102E-03   -1.4914    
  18  norm          9.9126        5.1415        .12730E-03   -1.5078    
  19  norm          .10000E-03    14.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6688        .17649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92228        .20496        .46483E-03   -.95682    
  23  Prefactor     1.0101        .65525E-01    .15312E-03   -.92395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43517e-09
Minuit parameter uncertainties:
  1  6.58694e-06
  2  1.24045e-05
  3  12.7783
  4  4.60123e-05
  5  7.15484e-05
  6  0.964062
  7  22.2389
  8  35.6293
  9  8.00717e-06
  10  0.000100931
  11  1.39463
  12  6.22942
  13  0.000820782
  14  1.43332
  15  39.0173
  16  1.08414
  17  19.5399
  18  5.14176
  19  2.91195e-05
  20  2.27376e-06
  21  1.43818e-06
  22  0.205131
  23  0.0655302
Done.

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

Extracting fit parameters...

4FGL J0501.2-0158
   Spectrum: LogParabola
191         norm:  2.157e+00  1.433e+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

GAL_V02
   Spectrum: PowerLaw
476    Prefactor:  1.010e+00  6.553e-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:  9.223e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.32
Ra Dec: 75.302 -1.975
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 4.78e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.07e-05

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) = 12304.9862628
delta logL = 0.474973518847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12304.9104575
delta logL = 0.550778814137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5545       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6069       1.0000          .0000       5.0000    
     3 'Normalizat'    .94746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0061       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.

 FCN=   12304.91     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5533        1.0810        .85372E-03    .58593E-04
   2  alpha         1.6059        .35350        .45093       -.72009E-04
   3  Normalizat    .94746        .17581        .10359        .46767E-04
   4  Prefactor     1.0061        .60494E-01    .43965E-01   -.15216E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.55334
  alpha      = 1.6059
  Normalizat = 0.947465
  Prefactor  = 1.00613
 **********
 **   18 **HESSE 
 **********

 FCN=   12304.91     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5533        1.3830        .34149E-04   -1.5459    
   2  alpha         1.6059        .56686        .16375E-01   -.36574    
   3  Normalizat    .94746        .18844        .45913E-03   -.94812    
   4  Prefactor     1.0061        .64900E-01    .15337E-03   -.92525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07207e-11
Minuit parameter uncertainties:
  1  1.38299
  2  0.572584
  3  0.188576
  4  0.0649047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899822': 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) = 12304.9104561
delta logL = 0.550780185302

Extracting fit parameters...

4FGL J0501.2-0158
   Spectrum: LogParabola
191         norm:  1.553e+00  1.383e+00  1.000e-04  1.000e+04 ( 1.000e-11)
192        alpha:  1.606e+00  5.726e-01  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:  1.006e+00  6.490e-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:  9.475e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.39
Ra Dec: 75.302 -1.975
Photon Index (Free Index): 1.61 +/- 0.57
Photon Flux (Free Index): 2.50e-08 +/- 2.38e-08
Energy Flux (Free Index): 2.52e-05 +/- 2.38e-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/899822/cmap_HighResolution_491270401_491529601_4FGL_J0501.2-0158_daily_bin972.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.78e-08', energy_flux2='2.52e-05', photon_flux_error='3.17e-08', dlogl='5.51e-01', energy_flux='1.62e-05', photon_flux2='2.50e-08', job_status='DONE', time_completed='2021-08-21 17:00:57.331477', photon_index_error2='0.57', photon_index2='1.61', ts='7.32', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='0.92', time_epoch_completed='1629590457.33', return_code='0', job_id='899822', GAL2='1.01', EG2='0.95', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.38e-08', ts2='8.39', photon_index='2.27' WHERE bin_id='972' AND source_name='4FGL J0501.2-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 17:00:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 899822: <4FGL_J0501.2-0158_daily_bin972> in cluster <slac> Done

Job <4FGL_J0501.2-0158_daily_bin972> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 21 16:45:17 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 16:45:18 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:18 2021
Terminated at Sat Aug 21 17:00:58 2021
Results reported at Sat Aug 21 17:00:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0501.2-0158_daily_bin972 75.3023 -1.9749 491270401 491529601 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 :                                   920.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             376.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

