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


Performing analysis on: 4FGL_J0501.2-0158_daily_bin1545
RA = 75.3023, Dec = -1.9749
tmin = 639792001, tmax = 640051201
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='902973', job_status='RUN', time_executed='2021-08-21 16:56:02.895533', time_epoch_executed='1629590162.9' WHERE source_name='4FGL J0501.2-0158' and cadence='daily' and bin_id='1545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902973/ft1_4FGL_J0501.2-0158_daily_bin1545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902973/ft2_4FGL_J0501.2-0158_daily_bin1545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902973/ft1_4FGL_J0501.2-0158_daily_bin1545.fits outfile=/scratch/kocevski/902973/ft1_filteredMKT_4FGL_J0501.2-0158_daily_bin1545.fits ra=75.3023 dec=-1.9749 rad=12.0 tmin=639792001.0 tmax=640051201.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.41
user 3.33
sys 1.03

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902973/ft2_4FGL_J0501.2-0158_daily_bin1545.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/902973/ft1_filteredMKT_4FGL_J0501.2-0158_daily_bin1545.fits evtable="EVENTS" outfile="/scratch/kocevski/902973/ft1_filtered_4FGL_J0501.2-0158_daily_bin1545.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.37
user 0.34
sys 1.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902973/ft1_filtered_4FGL_J0501.2-0158_daily_bin1545.fits" evtable="EVENTS" scfile=/scratch/kocevski/902973/ft2_4FGL_J0501.2-0158_daily_bin1545.fits sctable="SC_DATA" outfile=/scratch/kocevski/902973/ltcube_639792001_640051201_4FGL_J0501.2-0158_daily_bin1545.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/902973/ft2_4FGL_J0501.2-0158_daily_bin1545.fits
.....................!
real 12.88
user 11.53
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902973/ft1_filtered_4FGL_J0501.2-0158_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/902973/ft2_4FGL_J0501.2-0158_daily_bin1545.fits sctable="SC_DATA" expcube=/scratch/kocevski/902973/ltcube_639792001_640051201_4FGL_J0501.2-0158_daily_bin1545.fits outfile=/scratch/kocevski/902973/expmap_639792001_640051201_4FGL_J0501.2-0158_daily_bin1545.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/902973/ltcube_639792001_640051201_4FGL_J0501.2-0158_daily_bin1545.fits
.....................!
real 191.49
user 186.04
sys 5.04

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/902973/ft1_filtered_4FGL_J0501.2-0158_daily_bin1545.fits scfile=/scratch/kocevski/902973/ft2_4FGL_J0501.2-0158_daily_bin1545.fits outfile=/scratch/kocevski/902973/cmap_639792001_640051201_4FGL_J0501.2-0158_daily_bin1545.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.39
user 0.38
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902973/ft1_filtered_4FGL_J0501.2-0158_daily_bin1545.fits scfile=/scratch/kocevski/902973/ft2_4FGL_J0501.2-0158_daily_bin1545.fits outfile=/scratch/kocevski/902973/cmap_HighResolution_639792001_640051201_4FGL_J0501.2-0158_daily_bin1545.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.36
sys 1.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902973/ft1_filtered_4FGL_J0501.2-0158_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/902973/ft2_4FGL_J0501.2-0158_daily_bin1545.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902973/Model_4FGL_J0501.2-0158_daily_bin1545.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/902973/ft1_filtered_4FGL_J0501.2-0158_daily_bin1545.fits.....................!
real 156.39
user 153.68
sys 2.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.378       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1765       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.377       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6039       1.0000         .10000E-03   10000.    
    10 'norm      '    .13190E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.322       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5673       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1339       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6607       1.0000         .10000E-03   10000.    
    19 'norm      '    25.607       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0604       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0220       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=   8588.980     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2548 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.419        34.807       -.15296E-05    .16490E-04
   2  norm          .10000E-03    3.9936       -.23197E-07** at limit **
   3  norm          .10000E-03    8.1510       -.65608E-06** at limit **
   4  norm          .10000E-03    13.518        .34704E-07** at limit **
   5  norm          3.1765        1.4297       -.52968E-07   -.37052E-04
   6  Prefactor     .10000E-03    .54133        .45432E-07** at limit **
   7  Prefactor     43.327        28.576       -.11800E-05   -.25306E-03
   8  Prefactor     .10000E-03    19.917        .28788E-06** at limit **
   9  Prefactor     3.6063        9.4060        .31599E-05   -.91501E-05
  10  norm          .10000E-03    2.2513        .10516E-05** at limit **
  11  norm          .10000E-03    1.2274       -.53187E-07** at limit **
  12  Prefactor     .10000E-03    6.1883       -.49563E-07** at limit **
  13  Prefactor     38.308        28.248       -.22942E-06   -.58487E-05
  14  norm          2.5672        1.9488        .49137E-07    .12078E-04
  15  Prefactor     .10000E-03    21.835       -.28436E-06** at limit **
  16  norm          1.1340        .67428       -.69193E-08   -.33909E-04
  17  Prefactor     .10000E-03    8.3297        .76342E-06** at limit **
  18  norm          1.6612        3.7590        .18676E-06   -.14132E-04
  19  norm          25.651        45.466       -.37184E-05    .29465E-04
  20  Prefactor     .10000E-03    21.121        .49051E-07** at limit **
  21  Prefactor     .10000E-03    2.8943       -.22361E-07** at limit **
  22  Normalizat    1.0602        .23241       -.44358E-06   -.66503E-04
  23  Prefactor     1.0219        .75009E-01    .26675E-06   -.23424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.419
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.17647
  Prefactor  = 0.0001
  Prefactor  = 43.3269
  Prefactor  = 0.0001
  Prefactor  = 3.6063
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.3085
  norm       = 2.5672
  Prefactor  = 0.0001
  norm       = 1.13396
  Prefactor  = 0.0001
  norm       = 1.66125
  norm       = 25.6513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06024
  Prefactor  = 1.02192
 **********
 **   18 **HESSE 
 **********

 FCN=   8588.980     FROM HESSE     STATUS=OK           366 CALLS     2914 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.419        34.712        .72694E-04   -1.4604    
   2  norm          .10000E-03    4.0447        .18062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.2204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    13.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1765        1.4265        .70187E-04   -1.5351    
   6  Prefactor     .10000E-03    .54712        .66520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.327        27.528        .60870E-04   -1.4391    
   8  Prefactor     .10000E-03    19.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6063        9.4375        .10642E-02   -1.5328    
  10  norm          .10000E-03    3.8389        .24548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2602        .20030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.308        28.217        .64745E-04   -1.4469    
  14  norm          2.5672        1.9431        .10795E-03   -1.5388    
  15  Prefactor     .10000E-03    21.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1340        .66122        .52086E-04   -1.5495    
  17  Prefactor     .10000E-03    8.3366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6612        3.7359        .24249E-03   -1.5450    
  19  norm          25.651        45.071        .79162E-04   -1.4695    
  20  Prefactor     .10000E-03    21.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9027        .15396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0602        .24879        .44681E-03   -.91039    
  23  Prefactor     1.0219        .80774E-01    .15488E-03   -.92002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47927e-10
Minuit parameter uncertainties:
  1  34.735
  2  4.69186e-06
  3  3.1595e-06
  4  1.83232e-05
  5  1.4265
  6  8.22668e-07
  7  27.5358
  8  1.07524e-05
  9  9.44135
  10  2.85532e-05
  11  3.09537e-06
  12  8.28305e-06
  13  28.2268
  14  1.94318
  15  1.04805e-05
  16  0.661228
  17  3.85327e-06
  18  3.73644
  19  45.1313
  20  1.49331e-05
  21  4.6787e-07
  22  0.24906
  23  0.0807831
Done.

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

Extracting fit parameters...

4FGL J0501.2-0158
   Spectrum: LogParabola
191         norm:  2.567e+00  1.943e+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.022e+00  8.078e-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.060e+00  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.06
Ra Dec: 75.302 -1.975
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.68e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.46e-05

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

Saving results to:
/scratch/kocevski/902973/likelihoodResults_639792001_640051201_4FGL_J0501.2-0158_daily_bin1545.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) = 8588.94859831
delta logL = 0.0317558028601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8588.94723435
delta logL = 0.033119762842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6178       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4760       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0241       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=   8588.947     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6181        67.158        .63021E-02    .42253E-03
   2  alpha         2.4761        3.2065        .41154       -.15751E-05
   3  Normalizat    1.0479        .17084        .10135        .26885E-04
   4  Prefactor     1.0240        .58277E-01    .41758E-01   -.77346E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.6181
  alpha      = 2.47614
  Normalizat = 1.04795
  Prefactor  = 1.02405
 **********
 **   18 **HESSE 
 **********

 FCN=   8588.947     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6181        1.9432        .10554E-03   -1.5384    
   2  alpha         2.4761        .81271        .23859E-01   -.95457E-02
   3  Normalizat    1.0479        .24000        .44915E-03   -.91441    
   4  Prefactor     1.0240        .80363E-01    .15474E-03   -.91932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41693e-12
Minuit parameter uncertainties:
  1  1.94324
  2  0.827748
  3  0.240248
  4  0.0803723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902973': 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) = 8588.9472343
delta logL = 0.0331198202075

Extracting fit parameters...

4FGL J0501.2-0158
   Spectrum: LogParabola
191         norm:  2.618e+00  1.943e+00  1.000e-04  1.000e+04 ( 1.000e-11)
192        alpha:  2.476e+00  8.277e-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.024e+00  8.037e-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.048e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.14
Ra Dec: 75.302 -1.975
Photon Index (Free Index): 2.48 +/- 0.83
Photon Flux (Free Index): 6.81e-08 +/- 6.37e-08
Energy Flux (Free Index): 1.89e-05 +/- 1.40e-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/902973/cmap_HighResolution_639792001_640051201_4FGL_J0501.2-0158_daily_bin1545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-05', comment='SUCCESS', photon_flux='5.68e-08', energy_flux2='1.89e-05', photon_flux_error='4.30e-08', dlogl='3.31e-02', energy_flux='1.92e-05', photon_flux2='6.81e-08', job_status='DONE', time_completed='2021-08-21 17:09:14.530346', photon_index_error2='0.83', photon_index2='2.48', ts='3.06', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.40e-05', EG='1.06', time_epoch_completed='1629590954.53', return_code='0', job_id='902973', GAL2='1.02', EG2='1.05', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='6.37e-08', ts2='3.14', photon_index='2.27' WHERE bin_id='1545' AND source_name='4FGL J0501.2-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 17:09:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 902973: <4FGL_J0501.2-0158_daily_bin1545> in cluster <slac> Done

Job <4FGL_J0501.2-0158_daily_bin1545> 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) <bullet0030>, 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:09:15 2021
Results reported at Sat Aug 21 17:09:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0501.2-0158_daily_bin1545 75.3023 -1.9749 639792001 640051201 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 :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             386.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

