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


Performing analysis on: 4FGL_J0501.2-0158_daily_bin1546
RA = 75.3023, Dec = -1.9749
tmin = 640051201, tmax = 640310401
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='902974', job_status='RUN', time_executed='2021-08-21 16:56:02.703146', time_epoch_executed='1629590162.7' WHERE source_name='4FGL J0501.2-0158' and cadence='daily' and bin_id='1546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902974

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902974/ft1_4FGL_J0501.2-0158_daily_bin1546.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902974/ft2_4FGL_J0501.2-0158_daily_bin1546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902974/ft1_4FGL_J0501.2-0158_daily_bin1546.fits outfile=/scratch/kocevski/902974/ft1_filteredMKT_4FGL_J0501.2-0158_daily_bin1546.fits ra=75.3023 dec=-1.9749 rad=12.0 tmin=640051201.0 tmax=640310401.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.17
user 3.34
sys 0.79

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902974/ft1_filtered_4FGL_J0501.2-0158_daily_bin1546.fits" evtable="EVENTS" scfile=/scratch/kocevski/902974/ft2_4FGL_J0501.2-0158_daily_bin1546.fits sctable="SC_DATA" outfile=/scratch/kocevski/902974/ltcube_640051201_640310401_4FGL_J0501.2-0158_daily_bin1546.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/902974/ft2_4FGL_J0501.2-0158_daily_bin1546.fits
.....................!
real 12.43
user 11.28
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902974/ft1_filtered_4FGL_J0501.2-0158_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/902974/ft2_4FGL_J0501.2-0158_daily_bin1546.fits sctable="SC_DATA" expcube=/scratch/kocevski/902974/ltcube_640051201_640310401_4FGL_J0501.2-0158_daily_bin1546.fits outfile=/scratch/kocevski/902974/expmap_640051201_640310401_4FGL_J0501.2-0158_daily_bin1546.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/902974/ltcube_640051201_640310401_4FGL_J0501.2-0158_daily_bin1546.fits
.....................!
real 191.35
user 185.74
sys 5.23

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/902974/ft1_filtered_4FGL_J0501.2-0158_daily_bin1546.fits scfile=/scratch/kocevski/902974/ft2_4FGL_J0501.2-0158_daily_bin1546.fits outfile=/scratch/kocevski/902974/cmap_640051201_640310401_4FGL_J0501.2-0158_daily_bin1546.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.09
user 0.36
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902974/ft1_filtered_4FGL_J0501.2-0158_daily_bin1546.fits scfile=/scratch/kocevski/902974/ft2_4FGL_J0501.2-0158_daily_bin1546.fits outfile=/scratch/kocevski/902974/cmap_HighResolution_640051201_640310401_4FGL_J0501.2-0158_daily_bin1546.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.14
user 0.38
sys 0.72

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902974/ft1_filtered_4FGL_J0501.2-0158_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/902974/ft2_4FGL_J0501.2-0158_daily_bin1546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902974/Model_4FGL_J0501.2-0158_daily_bin1546.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/902974/ft1_filtered_4FGL_J0501.2-0158_daily_bin1546.fits.....................!
real 155.87
user 153.47
sys 2.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3671       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21817E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.450       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14594E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7284       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2638       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8843       1.0000         .10000E-03   10000.    
    19 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4101       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88550       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=   8389.245     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2184 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.255        .17295E-05** at limit **
   2  norm          .10000E-03    1.1849       -.95371E-08** at limit **
   3  norm          .10000E-03    4.2979       -.59292E-06** at limit **
   4  norm          .10000E-03    10.062        .10232E-04** at limit **
   5  norm          3.3670        1.2576       -.55143E-07   -.11769E-03
   6  Prefactor     .10003E-03    .66700        .19175E-06** at limit **
   7  Prefactor     16.450        23.094        .97533E-06    .82148E-05
   8  Prefactor     .10000E-03    10.421        .90818E-05** at limit **
   9  Prefactor     .10000E-03    3.3679        .12102E-05** at limit **
  10  norm          .10000E-03    1.3662       -.24636E-06** at limit **
  11  norm          .10060E-03    1.0503       -.12088E-05** at limit **
  12  Prefactor     .10000E-03    3.3008       -.12554E-05** at limit **
  13  Prefactor     .10000E-03    12.056       -.47768E-05** at limit **
  14  norm          3.7282        2.3181        .33432E-07    .24817E-03
  15  Prefactor     .10000E-03    27.001        .14315E-04** at limit **
  16  norm          1.2637        .75623       -.24995E-07   -.87749E-03
  17  Prefactor     .10000E-03    7.7819       -.82305E-05** at limit **
  18  norm          1.8841        2.8841       -.16493E-06   -.51403E-03
  19  norm          .10000E-03    24.656        .39075E-05** at limit **
  20  Prefactor     .10000E-03    40.921       -.17853E-04** at limit **
  21  Prefactor     .10000E-03    5.5208        .21163E-05** at limit **
  22  Normalizat    1.4102        .22237        .97762E-07    .24810E-03
  23  Prefactor     .88551        .69101E-01   -.48533E-07    .32243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.36697
  Prefactor  = 0.000100032
  Prefactor  = 16.45
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.72817
  Prefactor  = 0.0001
  norm       = 1.26373
  Prefactor  = 0.0001
  norm       = 1.88411
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.41019
  Prefactor  = 0.885507
 **********
 **   18 **HESSE 
 **********

 FCN=   8389.245     FROM HESSE     STATUS=OK           364 CALLS     2548 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1860        .97362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3670        1.2461        .60143E-04   -1.5341    
   6  Prefactor     .10003E-03    12.545        .14324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.450        22.970        .98751E-04   -1.4897    
   8  Prefactor     .10000E-03    10.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3805        .16413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.3899        .20803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10060E-03    13.137        .17283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3433        .16247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7282        2.3173        .10458E-03   -1.5322    
  15  Prefactor     .10000E-03    27.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2637        .74801        .55706E-04   -1.5483    
  17  Prefactor     .10000E-03    7.7878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8841        2.8506        .17904E-03   -1.5433    
  19  norm          .10000E-03    24.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.5764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4102        .23728        .38353E-03   -.80334    
  23  Prefactor     .88551        .75216E-01    .15549E-03   -.96649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63319e-08
Minuit parameter uncertainties:
  1  8.89865e-06
  2  2.06294e-07
  3  6.73699e-07
  4  1.01627e-05
  5  1.24615
  6  0.00126782
  7  22.9822
  8  2.30362e-06
  9  1.53546e-06
  10  3.24252e-06
  11  0.00559824
  12  2.85586e-06
  13  6.94752e-07
  14  2.31732
  15  3.06062e-06
  16  0.748018
  17  1.95392e-06
  18  2.85079
  19  1.16011e-06
  20  8.1908e-05
  21  6.78546e-07
  22  0.237468
  23  0.0752251
Done.

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

Extracting fit parameters...

4FGL J0501.2-0158
   Spectrum: LogParabola
191         norm:  3.728e+00  2.317e+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:  8.855e-01  7.523e-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:  1.410e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 75.302 -1.975
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 8.25e-08 +/- 5.13e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 1.74e-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) = 8389.10161379
delta logL = 0.143656863454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8389.10130329
delta logL = 0.143967364833

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8389.101     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      241 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6736        2.3449        .97225E-04    .15376E-02
   2  alpha         2.6366        .72549        .19438E-01    .79705E-04
   3  Normalizat    1.3804        .23755        .38703E-03   -.14470E-03
   4  Prefactor     .89091        .76061E-01    .15510E-03   -.33968E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.67359
  alpha      = 2.63658
  Normalizat = 1.38037
  Prefactor  = 0.890905
 **********
 **   18 **HESSE 
 **********

 FCN=   8389.101     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6736        2.2995        .38890E-05   -1.5325    
   2  alpha         2.6366        .71086        .77751E-03    .54658E-01
   3  Normalizat    1.3804        .23768        .15481E-04   -.81198    
   4  Prefactor     .89091        .76070E-01    .31019E-04   -.96460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82684e-10
Minuit parameter uncertainties:
  1  2.29952
  2  0.720836
  3  0.237869
  4  0.0760791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902974': 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) = 8389.10130148
delta logL = 0.143969176999

Extracting fit parameters...

4FGL J0501.2-0158
   Spectrum: LogParabola
191         norm:  3.674e+00  2.300e+00  1.000e-04  1.000e+04 ( 1.000e-11)
192        alpha:  2.637e+00  7.208e-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:  8.909e-01  7.608e-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:  1.380e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.01
Ra Dec: 75.302 -1.975
Photon Index (Free Index): 2.64 +/- 0.72
Photon Flux (Free Index): 1.09e-07 +/- 7.92e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.60e-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/902974/cmap_HighResolution_640051201_640310401_4FGL_J0501.2-0158_daily_bin1546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.25e-08', energy_flux2='2.70e-05', photon_flux_error='5.13e-08', dlogl='1.44e-01', energy_flux='2.79e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-08-21 17:07:29.845733', photon_index_error2='0.72', photon_index2='2.64', ts='4.65', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.41', time_epoch_completed='1629590849.85', return_code='0', job_id='902974', GAL2='0.89', EG2='1.38', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='7.92e-08', ts2='5.01', photon_index='2.27' WHERE bin_id='1546' AND source_name='4FGL J0501.2-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 17:07:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 902974: <4FGL_J0501.2-0158_daily_bin1546> in cluster <slac> Done

Job <4FGL_J0501.2-0158_daily_bin1546> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 16:55:32 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 16:55:34 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:55:34 2021
Terminated at Sat Aug 21 17:07:30 2021
Results reported at Sat Aug 21 17:07:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0501.2-0158_daily_bin1546 75.3023 -1.9749 640051201 640310401 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 :                                   688.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             356.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

