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


Performing analysis on: 4FGL_J0501.2-0158_daily_bin1441
RA = 75.3023, Dec = -1.9749
tmin = 612835201, tmax = 613094401
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='901759', job_status='RUN', time_executed='2021-08-21 16:51:58.082292', time_epoch_executed='1629589918.08' WHERE source_name='4FGL J0501.2-0158' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901759/ft1_4FGL_J0501.2-0158_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901759/ft2_4FGL_J0501.2-0158_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901759/ft1_4FGL_J0501.2-0158_daily_bin1441.fits outfile=/scratch/kocevski/901759/ft1_filteredMKT_4FGL_J0501.2-0158_daily_bin1441.fits ra=75.3023 dec=-1.9749 rad=12.0 tmin=612835201.0 tmax=613094401.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 6.10
user 2.67
sys 3.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901759/ft1_filtered_4FGL_J0501.2-0158_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/901759/ft2_4FGL_J0501.2-0158_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/901759/ltcube_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.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/901759/ft2_4FGL_J0501.2-0158_daily_bin1441.fits
.....................!
real 16.16
user 12.09
sys 4.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901759/ft1_filtered_4FGL_J0501.2-0158_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/901759/ft2_4FGL_J0501.2-0158_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/901759/ltcube_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.fits outfile=/scratch/kocevski/901759/expmap_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.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/901759/ltcube_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.fits
.....................!
real 196.03
user 187.04
sys 8.66

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/901759/ft1_filtered_4FGL_J0501.2-0158_daily_bin1441.fits scfile=/scratch/kocevski/901759/ft2_4FGL_J0501.2-0158_daily_bin1441.fits outfile=/scratch/kocevski/901759/cmap_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.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 3.76
user 0.37
sys 3.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901759/ft1_filtered_4FGL_J0501.2-0158_daily_bin1441.fits scfile=/scratch/kocevski/901759/ft2_4FGL_J0501.2-0158_daily_bin1441.fits outfile=/scratch/kocevski/901759/cmap_HighResolution_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.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 3.76
user 0.39
sys 3.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901759/ft1_filtered_4FGL_J0501.2-0158_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/901759/ft2_4FGL_J0501.2-0158_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901759/Model_4FGL_J0501.2-0158_daily_bin1441.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/901759/ft1_filtered_4FGL_J0501.2-0158_daily_bin1441.fits......................!
real 74.21
user 68.61
sys 5.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/901759/ft1_filtered_4FGL_J0501.2-0158_daily_bin1441.fits', '/scratch/kocevski/901759/ft2_4FGL_J0501.2-0158_daily_bin1441.fits', expMap='/scratch/kocevski/901759/expmap_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.fits', expCube='/scratch/kocevski/901759/ltcube_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/901759/Model_4FGL_J0501.2-0158_daily_bin1441.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/901759/ft1_filtered_4FGL_J0501.2-0158_daily_bin1441.fits
Spacecraft file(s): /scratch/kocevski/901759/ft2_4FGL_J0501.2-0158_daily_bin1441.fits
Exposure map: /scratch/kocevski/901759/expmap_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.fits
Exposure cube: /scratch/kocevski/901759/ltcube_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/901759/Model_4FGL_J0501.2-0158_daily_bin1441.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3281.60994955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7443       1.0000         .10000E-03   10000.    
     3 'norm      '    .10485E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .21360       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.746       1.0000         .10000E-03   10000.    
    10 'norm      '    10.828       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7227       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .85911       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3247       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    27.129       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1778       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1352       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96998       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=   3281.576     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2552 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.297       -.22161E-07** at limit **
   2  norm          2.7336        11.334        .10594E-05   -.45059E-04
   3  norm          .10000E-03    12.975        .14312E-06** at limit **
   4  norm          .10000E-03    72.427        .15763E-06** at limit **
   5  norm          .21305        2.1393        .33577E-06   -.27831E-03
   6  Prefactor     .10000E-03    2.4472        .30918E-07** at limit **
   7  Prefactor     .10000E-03    55.252       -.87391E-07** at limit **
   8  Prefactor     .10000E-03    48.338       -.57259E-07** at limit **
   9  Prefactor     29.734        25.077       -.22777E-06   -.55185E-04
  10  norm          10.824        17.548       -.13600E-06   -.16542E-04
  11  norm          1.7167        6.2845        .11924E-05   -.35749E-04
  12  Prefactor     .10000E-03    41.015        .65756E-07** at limit **
  13  Prefactor     .10000E-03    128.88        .15535E-06** at limit **
  14  norm          .85940        3.7860        .80678E-06   -.22171E-04
  15  Prefactor     .10000E-03    170.82       -.28459E-06** at limit **
  16  norm          7.3233        4.4974       -.80093E-07   -.37544E-04
  17  Prefactor     .10000E-03    121.76       -.18855E-05** at limit **
  18  norm          .10000E-03    17.118        .24389E-07** at limit **
  19  norm          27.025        64.721       -.75984E-06   -.36882E-04
  20  Prefactor     .10000E-03    41.573       -.38469E-07** at limit **
  21  Prefactor     6.1846        22.076        .53374E-05   -.10689E-04
  22  Normalizat    1.1359        .36119       -.19152E-05   -.31820E-04
  23  Prefactor     .96978        .11630        .14790E-07   -.69479E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.7336
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.213052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.734
  norm       = 10.8236
  norm       = 1.71672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.859404
  Prefactor  = 0.0001
  norm       = 7.32329
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.0247
  Prefactor  = 0.0001
  Prefactor  = 6.18456
  Normalizat = 1.13591
  Prefactor  = 0.969776
 **********
 **   18 **HESSE 
 **********

 FCN=   3281.576     FROM HESSE     STATUS=OK           366 CALLS     2918 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7336        11.085        .24576E-03   -1.5377    
   3  norm          .10000E-03    13.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    72.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .21305        3.2700        .14477E-02   -1.5616    
   6  Prefactor     .10000E-03    2.4822        .87399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    55.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.734        25.160        .73461E-04   -1.4617    
  10  norm          10.824        17.525        .12176E-03   -1.5050    
  11  norm          1.7167        6.2294        .25550E-03   -1.5446    
  12  Prefactor     .10000E-03    41.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    128.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .85940        3.6930        .21214E-03   -1.5523    
  15  Prefactor     .10000E-03    170.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3233        4.4939        .92013E-04   -1.5167    
  17  Prefactor     .10000E-03    123.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.025        64.820        .76914E-04   -1.4668    
  20  Prefactor     .10000E-03    41.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.1846        22.267        .80758E-03   -1.5211    
  22  Normalizat    1.1359        .38588        .44432E-03   -.88607    
  23  Prefactor     .96978        .12551        .15839E-03   -.93744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2341e-11
Minuit parameter uncertainties:
  1  1.79267e-05
  2  11.0128
  3  7.6561e-06
  4  1.10194e-05
  5  1.66906
  6  4.23534e-06
  7  7.78431e-05
  8  5.08833e-05
  9  25.1688
  10  17.5336
  11  6.2318
  12  3.91141e-05
  13  0.000180096
  14  3.5632
  15  0.000362821
  16  4.49414
  17  0.000213229
  18  2.73275e-06
  19  64.9894
  20  2.25502e-06
  21  22.2965
  22  0.386843
  23  0.125549
Done.

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

Extracting fit parameters...

4FGL J0501.2-0158
   Spectrum: LogParabola
191         norm:  8.594e-01  3.563e+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:  9.698e-01  1.255e-01  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.136e+00  3.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/901759/likelihoodResults_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.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) = 3281.51620216
delta logL = 0.0597103167761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3281.51119288
delta logL = 0.0647195951447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1608       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7613       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96844       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=   3281.511     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      217 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1601        3.3274        .10691E-01    .44990E-03
   2  alpha         1.7612        1.0156        .43690       -.16413E-04
   3  Normalizat    1.1358        .33729        .10023        .82848E-05
   4  Prefactor     .96844        .11271        .45871E-01   -.28067E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16013
  alpha      = 1.76119
  Normalizat = 1.13582
  Prefactor  = 0.968444
 **********
 **   18 **HESSE 
 **********

 FCN=   3281.511     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1601        3.0685        .15514E-03   -1.5493    
   2  alpha         1.7612        1.1582        .22259E-01   -.30001    
   3  Normalizat    1.1358        .35906        .44417E-03   -.88610    
   4  Prefactor     .96844        .12039        .15846E-03   -.93789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86167e-12
Minuit parameter uncertainties:
  1  3.06896
  2  1.20915
  3  0.359834
  4  0.120419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901759': 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) = 3281.51119285
delta logL = 0.0647196217046

Extracting fit parameters...

4FGL J0501.2-0158
   Spectrum: LogParabola
191         norm:  1.160e+00  3.069e+00  1.000e-04  1.000e+04 ( 1.000e-11)
192        alpha:  1.761e+00  1.209e+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.684e-01  1.204e-01  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.136e+00  3.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/901759/cmap_HighResolution_612835201_613094401_4FGL_J0501.2-0158_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.73e-05', job_status='DONE', photon_flux_upper_limit='2.58e-07', time_completed='2021-08-21 17:00:51.864800', job_id='901759', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1629590451.86', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='6.47e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1441' AND source_name='4FGL J0501.2-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 17:00:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 901759: <4FGL_J0501.2-0158_daily_bin1441> in cluster <slac> Done

Job <4FGL_J0501.2-0158_daily_bin1441> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 21 16:50:50 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 16:50:51 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:50:51 2021
Terminated at Sat Aug 21 17:00:53 2021
Results reported at Sat Aug 21 17:00:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0501.2-0158_daily_bin1441 75.3023 -1.9749 612835201 613094401 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 :                                   576.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            603 sec.

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

