/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 214 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 = 7471
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1501.0+2238_daily_bin86
RA = 225.257, Dec = 22.6364
tmin = 261619201, tmax = 261878401
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='931922', job_status='RUN', time_executed='2021-09-10 17:35:05.836812', time_epoch_executed='1631320505.84' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931922

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931922/ft1_4FGL_J1501.0+2238_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931922/ft2_4FGL_J1501.0+2238_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931922/ft1_4FGL_J1501.0+2238_daily_bin86.fits outfile=/scratch/kocevski/931922/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin86.fits ra=225.257 dec=22.6364 rad=12.0 tmin=261619201.0 tmax=261878401.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 1.40
user 1.23
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/931922/ft2_4FGL_J1501.0+2238_daily_bin86.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931922/ft2_4FGL_J1501.0+2238_daily_bin86.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/931922/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/931922/ft1_filtered_4FGL_J1501.0+2238_daily_bin86.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 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931922/ft1_filtered_4FGL_J1501.0+2238_daily_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/931922/ft2_4FGL_J1501.0+2238_daily_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/931922/ltcube_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.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/931922/ft2_4FGL_J1501.0+2238_daily_bin86.fits
.....................!
real 12.57
user 12.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931922/ft1_filtered_4FGL_J1501.0+2238_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/931922/ft2_4FGL_J1501.0+2238_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/931922/ltcube_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.fits outfile=/scratch/kocevski/931922/expmap_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.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/931922/ltcube_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.fits
.....................!
real 191.20
user 185.68
sys 5.16

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

Setting source of interest to:
4FGL J1501.0+2238 @ 225.257 22.6364

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/931922/ft1_filtered_4FGL_J1501.0+2238_daily_bin86.fits scfile=/scratch/kocevski/931922/ft2_4FGL_J1501.0+2238_daily_bin86.fits outfile=/scratch/kocevski/931922/cmap_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.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=225.257 yref=22.6364 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 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931922/ft1_filtered_4FGL_J1501.0+2238_daily_bin86.fits scfile=/scratch/kocevski/931922/ft2_4FGL_J1501.0+2238_daily_bin86.fits outfile=/scratch/kocevski/931922/cmap_HighResolution_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.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=225.257 yref=22.6364 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 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/931922/ft1_filtered_4FGL_J1501.0+2238_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/931922/ft2_4FGL_J1501.0+2238_daily_bin86.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/931922/Model_4FGL_J1501.0+2238_daily_bin86.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/931922/ft1_filtered_4FGL_J1501.0+2238_daily_bin86.fits.....................!
real 65.56
user 64.15
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/931922/ft1_filtered_4FGL_J1501.0+2238_daily_bin86.fits', '/scratch/kocevski/931922/ft2_4FGL_J1501.0+2238_daily_bin86.fits', expMap='/scratch/kocevski/931922/expmap_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.fits', expCube='/scratch/kocevski/931922/ltcube_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/931922/Model_4FGL_J1501.0+2238_daily_bin86.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1501.0+2238'

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.674e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/931922/ft1_filtered_4FGL_J1501.0+2238_daily_bin86.fits
Spacecraft file(s): /scratch/kocevski/931922/ft2_4FGL_J1501.0+2238_daily_bin86.fits
Exposure map: /scratch/kocevski/931922/expmap_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.fits
Exposure cube: /scratch/kocevski/931922/ltcube_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/931922/Model_4FGL_J1501.0+2238_daily_bin86.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) = 9017.77716931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.9874       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.376       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5556       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6272       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.280       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.961       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0647       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1355       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9017.773     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2321 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0893        .73138E-07** at limit **
   2  norm          7.9874        2.8295        .10989E-07   -.15152E-04
   3  Prefactor     .10000E-03    1.7665        .96962E-07** at limit **
   4  norm          .10000E-03    .69639        .58512E-07** at limit **
   5  norm          .10000E-03    1.3932        .48480E-08** at limit **
   6  Prefactor     .10000E-03    14.168        .83957E-06** at limit **
   7  Prefactor     19.373        20.985        .53942E-06    .80235E-04
   8  Prefactor     19.611        19.012        .66893E-06    .83684E-04
   9  Prefactor     2.4735        63.672        .20388E-05   -.22451E-04
  10  Prefactor     .10000E-03    100.68        .11741E-05** at limit **
  11  Prefactor     5.6271        6.3687        .20683E-05   -.28571E-04
  12  norm          .10000E-03    17.746        .35072E-06** at limit **
  13  Prefactor     .10000E-03    13.443       -.79404E-06** at limit **
  14  Prefactor     .10000E-03    2.2496       -.30850E-08** at limit **
  15  norm          16.282        2.3445        .18728E-07   -.28106E-04
  16  Prefactor     14.938        32.413       -.19675E-05   -.46999E-04
  17  Prefactor     .10000E-03    7.8794        .11506E-07** at limit **
  18  Prefactor     .10000E-03    24.197        .24073E-06** at limit **
  19  Prefactor     .10000E-03    .74517        .61442E-08** at limit **
  20  Prefactor     .10000E-03    21.027       -.11559E-05** at limit **
  21  Normalizat    1.0648        .19390       -.66742E-06   -.14891E-04
  22  Prefactor     1.1354        .13522       -.54856E-07   -.50692E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.98743
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3728
  Prefactor  = 19.6107
  Prefactor  = 2.47346
  Prefactor  = 0.0001
  Prefactor  = 5.62712
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.2816
  Prefactor  = 14.9379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06478
  Prefactor  = 1.13542
 **********
 **   18 **HESSE 
 **********

 FCN=   9017.773     FROM HESSE     STATUS=OK           338 CALLS     2659 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0996        .16300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.9874        2.8307        .92187E-04   -1.5143    
   3  Prefactor     .10000E-03    1.7723        .12324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .70220        .77372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4002        .10945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.373        21.093        .90991E-04   -1.4827    
   8  Prefactor     19.611        19.090        .90399E-04   -1.4822    
   9  Prefactor     2.4735        63.795        .25539E-03   -1.5393    
  10  Prefactor     .10000E-03    102.60        .21046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6271        6.4082        .84673E-03   -1.5233    
  12  norm          .10000E-03    17.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2542        .13909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.282        2.3476        .52843E-04   -1.4901    
  16  Prefactor     14.938        32.657        .10355E-03   -1.4935    
  17  Prefactor     .10000E-03    7.9225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .75210        .80040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0648        .22563        .32279E-03   -.90891    
  22  Prefactor     1.1354        .15762        .22369E-03   -.88343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61809e-11
Minuit parameter uncertainties:
  1  6.92152e-07
  2  2.83071
  3  3.2465e-07
  4  5.66181e-08
  5  4.57906e-08
  6  4.80833e-05
  7  21.1008
  8  19.0961
  9  25.1527
  10  6.57347e-05
  11  6.409
  12  2.23474e-05
  13  3.2077e-05
  14  2.36621e-07
  15  2.34765
  16  32.6957
  17  1.93706e-06
  18  1.94361e-05
  19  5.07748e-07
  20  4.26428e-05
  21  0.225833
  22  0.157683
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  5.627e+00  6.409e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.135e+00  1.577e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.065e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.83e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.43e-05

TS (Fixed Index): 1.39
Ra Dec: 225.257 22.636
Photon Flux Upper Limit: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931922/likelihoodResults_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.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) = 9017.73547236
delta logL = 0.0375464833869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9017.72718405
delta logL = 0.0458347953809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7889       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2706       1.0000          .0000       10.000    
     3 'Normalizat'    1.0565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1374       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9017.727     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      274 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7872        7.3997        .91924E-03   -.12516E-04
   2  Index         2.2714        1.0217        .10405E-01    .50150E-03
   3  Normalizat    1.0566        .22219        .32390E-03   -.83536E-05
   4  Prefactor     1.1374        .15758        .22351E-03   -.46794E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.78722
  Index      = 2.2714
  Normalizat = 1.0566
  Prefactor  = 1.13737
 **********
 **   18 **HESSE 
 **********

 FCN=   9017.727     FROM HESSE     STATUS=OK            27 CALLS      301 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7872        6.5517        .36769E-04   -1.5270    
   2  Index         2.2714        .90613        .20810E-02   -.57725    
   3  Normalizat    1.0566        .22170        .12956E-04   -.91158    
   4  Prefactor     1.1374        .15755        .89406E-05   -.88281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43804e-13
Minuit parameter uncertainties:
  1  6.55265
  2  0.913349
  3  0.221896
  4  0.157613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931922': 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) = 9017.72718355
delta logL = 0.0458352898313

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  4.787e+00  6.553e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.271e+00  9.133e-01  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.137e+00  1.576e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.057e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 225.257 22.636
Photon Index (Free Index): 2.27 +/- 0.91
Photon Flux (Free Index): 2.67e-08 +/- 3.98e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.22e-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/931922/cmap_HighResolution_261619201_261878401_4FGL_J1501.0+2238_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', comment='SUCCESS', photon_flux='1.83e-08', energy_flux2='1.06e-05', photon_flux_error='2.08e-08', dlogl='4.58e-02', energy_flux='1.26e-05', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-09-10 17:47:08.453213', photon_index_error2='0.91', photon_index2='2.27', ts='1.39', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='7.28e-08', energy_flux_error2='1.22e-05', EG='1.06', time_epoch_completed='1631321228.45', return_code='0', job_id='931922', GAL2='1.14', EG2='1.06', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='3.98e-08', ts2='1.49', photon_index='2.00' WHERE bin_id='86' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:47:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 931922: <4FGL_J1501.0+2238_daily_bin86> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin86> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 17:31:22 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:31:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 17:31:23 2021
Terminated at Fri Sep 10 17:47:09 2021
Results reported at Fri Sep 10 17:47:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin86 225.257 22.6364 261619201 261878401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1501.0+2238 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   723.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

