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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin199
RA = 225.257, Dec = 22.6364
tmin = 290908801, tmax = 291168001
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='932103', job_status='RUN', time_executed='2021-09-10 17:31:53.566360', time_epoch_executed='1631320313.57' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932103/ft1_4FGL_J1501.0+2238_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932103/ft2_4FGL_J1501.0+2238_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932103/ft1_4FGL_J1501.0+2238_daily_bin199.fits outfile=/scratch/kocevski/932103/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin199.fits ra=225.257 dec=22.6364 rad=12.0 tmin=290908801.0 tmax=291168001.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 3.43
user 3.21
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/932103/ft2_4FGL_J1501.0+2238_daily_bin199.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/932103/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin199.fits evtable="EVENTS" outfile="/scratch/kocevski/932103/ft1_filtered_4FGL_J1501.0+2238_daily_bin199.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.50
user 0.36
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932103/ft1_filtered_4FGL_J1501.0+2238_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/932103/ft2_4FGL_J1501.0+2238_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/932103/ltcube_290908801_291168001_4FGL_J1501.0+2238_daily_bin199.fits outfile=/scratch/kocevski/932103/expmap_290908801_291168001_4FGL_J1501.0+2238_daily_bin199.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/932103/ltcube_290908801_291168001_4FGL_J1501.0+2238_daily_bin199.fits
.....................!
real 189.70
user 184.73
sys 4.60

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/932103/ft1_filtered_4FGL_J1501.0+2238_daily_bin199.fits scfile=/scratch/kocevski/932103/ft2_4FGL_J1501.0+2238_daily_bin199.fits outfile=/scratch/kocevski/932103/cmap_290908801_291168001_4FGL_J1501.0+2238_daily_bin199.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.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932103/ft1_filtered_4FGL_J1501.0+2238_daily_bin199.fits scfile=/scratch/kocevski/932103/ft2_4FGL_J1501.0+2238_daily_bin199.fits outfile=/scratch/kocevski/932103/cmap_HighResolution_290908801_291168001_4FGL_J1501.0+2238_daily_bin199.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.57
user 0.42
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/932103/ft1_filtered_4FGL_J1501.0+2238_daily_bin199.fits', '/scratch/kocevski/932103/ft2_4FGL_J1501.0+2238_daily_bin199.fits', expMap='/scratch/kocevski/932103/expmap_290908801_291168001_4FGL_J1501.0+2238_daily_bin199.fits', expCube='/scratch/kocevski/932103/ltcube_290908801_291168001_4FGL_J1501.0+2238_daily_bin199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/932103/Model_4FGL_J1501.0+2238_daily_bin199.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/932103/ft1_filtered_4FGL_J1501.0+2238_daily_bin199.fits
Spacecraft file(s): /scratch/kocevski/932103/ft2_4FGL_J1501.0+2238_daily_bin199.fits
Exposure map: /scratch/kocevski/932103/expmap_290908801_291168001_4FGL_J1501.0+2238_daily_bin199.fits
Exposure cube: /scratch/kocevski/932103/ltcube_290908801_291168001_4FGL_J1501.0+2238_daily_bin199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/932103/Model_4FGL_J1501.0+2238_daily_bin199.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) = 6904.73228178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.9993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6012       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.8771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8517       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6073       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7539       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.591       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2703       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.179       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18591E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0490       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97119       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=   6904.730     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2321 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9855        .10170E-07** at limit **
   2  norm          6.9989        3.0494        .95205E-08    .14665E-05
   3  Prefactor     7.5983        7.3569        .13542E-06   -.19439E-04
   4  norm          .10000E-03    1.0726        .62044E-07** at limit **
   5  norm          5.8766        4.3594        .41024E-07   -.80766E-04
   6  Prefactor     9.8457        28.309       -.57260E-07   -.25246E-04
   7  Prefactor     .10000E-03    34.094        .78626E-06** at limit **
   8  Prefactor     4.6059        7.5964        .27989E-05   -.11256E-03
   9  Prefactor     .10000E-03    8.8592       -.34933E-08** at limit **
  10  Prefactor     .10000E-03    15.817       -.43390E-06** at limit **
  11  Prefactor     3.7537        4.0664       -.25552E-07    .42649E-04
  12  norm          .10000E-03    22.819        .31531E-06** at limit **
  13  Prefactor     24.586        35.288       -.85715E-07   -.26761E-04
  14  Prefactor     .10000E-03    2.4800        .47868E-07** at limit **
  15  norm          5.2707        1.4947        .20409E-07   -.12953E-03
  16  Prefactor     26.162        33.583       -.47163E-06   -.88958E-04
  17  Prefactor     .10000E-03    12.959        .20041E-06** at limit **
  18  Prefactor     .10000E-03    12.829        .22061E-06** at limit **
  19  Prefactor     .10000E-03    1.2471        .20384E-06** at limit **
  20  Prefactor     .10000E-03    40.810       -.95060E-06** at limit **
  21  Normalizat    1.0491        .19107       -.21094E-08   -.57714E-04
  22  Prefactor     .97115        .13374       -.27089E-06   -.36783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.99894
  Prefactor  = 7.5983
  norm       = 0.0001
  norm       = 5.87663
  Prefactor  = 9.84569
  Prefactor  = 0.0001
  Prefactor  = 4.60587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.75367
  norm       = 0.0001
  Prefactor  = 24.5858
  Prefactor  = 0.0001
  norm       = 5.27072
  Prefactor  = 26.1622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.04911
  Prefactor  = 0.971154
 **********
 **   18 **HESSE 
 **********

 FCN=   6904.730     FROM HESSE     STATUS=OK           344 CALLS     2665 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9894        .16190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.9989        3.0504        .92542E-04   -1.5179    
   3  Prefactor     7.5983        7.3666        .14546E-03   -1.5157    
   4  norm          .10000E-03    1.0851        .83993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.8766        4.3588        .14406E-03   -1.5223    
   6  Prefactor     9.8457        28.570        .12767E-03   -1.5080    
   7  Prefactor     .10000E-03    34.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6059        7.6122        .93759E-03   -1.5279    
   9  Prefactor     .10000E-03    8.8720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7537        4.0686        .16994E-03   -1.5320    
  12  norm          .10000E-03    22.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.586        35.351        .80779E-04   -1.4716    
  14  Prefactor     .10000E-03    2.4864        .12779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2707        1.4942        .51353E-04   -1.5249    
  16  Prefactor     26.162        33.625        .78295E-04   -1.4685    
  17  Prefactor     .10000E-03    13.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3276        .17869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0491        .22916        .27774E-03   -.91403    
  22  Prefactor     .97115        .16052        .20798E-03   -.93697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56909e-10
Minuit parameter uncertainties:
  1  2.03059e-06
  2  3.05042
  3  7.36753
  4  4.47217e-07
  5  4.35899
  6  28.6097
  7  0.000171502
  8  7.61378
  9  1.04528e-05
  10  0.000171659
  11  4.06893
  12  0.000142966
  13  35.3816
  14  1.42902e-07
  15  1.49422
  16  33.6498
  17  6.22743e-06
  18  6.1931e-05
  19  2.43216e-05
  20  0.000333011
  21  0.229381
  22  0.1606
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.754e+00  4.069e+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:  9.712e-01  1.606e-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.049e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.22e-08 +/- 1.32e-08
Energy Flux (Fixed Index): 8.38e-06 +/- 9.09e-06

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

Saving results to:
/scratch/kocevski/932103/likelihoodResults_290908801_291168001_4FGL_J1501.0+2238_daily_bin199.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) = 6904.54757074
delta logL = 0.182015698171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6904.54205597
delta logL = 0.187530462675

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6895       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5625       1.0000          .0000       10.000    
     3 'Normalizat'    1.0530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97038       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6904.542     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      267 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6898        5.0605        .18583E-03   -.10729E-02
   2  Index         1.5626        .67963        .11209E-01   -.20280E-03
   3  Normalizat    1.0529        .21463        .27728E-03    .20980E-03
   4  Prefactor     .97043        .15622        .20803E-03    .13369E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.68982
  Index      = 1.5626
  Normalizat = 1.05292
  Prefactor  = 0.970429
 **********
 **   18 **HESSE 
 **********

 FCN=   6904.542     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6898        5.0600        .74331E-05   -1.5275    
   2  Index         1.5626        .67978        .44834E-03   -.75801    
   3  Normalizat    1.0529        .21481        .11091E-04   -.91278    
   4  Prefactor     .97043        .15636        .41606E-04   -.93722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23445e-09
Minuit parameter uncertainties:
  1  5.06043
  2  0.683813
  3  0.214992
  4  0.156431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932103': 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) = 6904.5420559
delta logL = 0.187530534278

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  4.690e+00  5.060e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.563e+00  6.838e-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:  9.704e-01  1.564e-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.053e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 225.257 22.636
Photon Index (Free Index): 1.56 +/- 0.68
Photon Flux (Free Index): 7.47e-09 +/- 1.04e-08
Energy Flux (Free Index): 1.91e-05 +/- 3.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/932103/cmap_HighResolution_290908801_291168001_4FGL_J1501.0+2238_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', comment='SUCCESS', photon_flux='1.22e-08', energy_flux2='1.91e-05', photon_flux_error='1.32e-08', dlogl='1.88e-01', energy_flux='8.38e-06', photon_flux2='7.47e-09', job_status='DONE', time_completed='2021-09-10 17:42:33.328562', photon_index_error2='0.68', photon_index2='1.56', ts='2.86', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='5.64e-08', energy_flux_error2='3.40e-05', EG='1.05', time_epoch_completed='1631320953.33', return_code='0', job_id='932103', GAL2='0.97', EG2='1.05', return_code2='0', energy_flux_error='9.09e-06', photon_flux_error2='1.04e-08', ts2='3.23', photon_index='2.00' WHERE bin_id='199' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:42:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 932103: <4FGL_J1501.0+2238_daily_bin199> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin199> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 17:31:38 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:31:39 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:39 2021
Terminated at Fri Sep 10 17:42:34 2021
Results reported at Fri Sep 10 17:42:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin199 225.257 22.6364 290908801 291168001 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 :                                   635.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            656 sec.

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

