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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin31
RA = 225.257, Dec = 22.6364
tmin = 247363201, tmax = 247622401
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='931832', job_status='RUN', time_executed='2021-09-10 17:34:35.621341', time_epoch_executed='1631320475.62' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931832

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931832/ft1_4FGL_J1501.0+2238_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931832/ft2_4FGL_J1501.0+2238_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931832/ft1_4FGL_J1501.0+2238_daily_bin31.fits outfile=/scratch/kocevski/931832/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin31.fits ra=225.257 dec=22.6364 rad=12.0 tmin=247363201.0 tmax=247622401.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.45
user 1.27
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931832/ft2_4FGL_J1501.0+2238_daily_bin31.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/931832/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin31.fits evtable="EVENTS" outfile="/scratch/kocevski/931832/ft1_filtered_4FGL_J1501.0+2238_daily_bin31.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/931832/ft1_filtered_4FGL_J1501.0+2238_daily_bin31.fits" evtable="EVENTS" scfile=/scratch/kocevski/931832/ft2_4FGL_J1501.0+2238_daily_bin31.fits sctable="SC_DATA" outfile=/scratch/kocevski/931832/ltcube_247363201_247622401_4FGL_J1501.0+2238_daily_bin31.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/931832/ft2_4FGL_J1501.0+2238_daily_bin31.fits
.....................!
real 12.98
user 12.54
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931832/ft1_filtered_4FGL_J1501.0+2238_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/931832/ft2_4FGL_J1501.0+2238_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/931832/ltcube_247363201_247622401_4FGL_J1501.0+2238_daily_bin31.fits outfile=/scratch/kocevski/931832/expmap_247363201_247622401_4FGL_J1501.0+2238_daily_bin31.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/931832/ltcube_247363201_247622401_4FGL_J1501.0+2238_daily_bin31.fits
.....................!
real 190.44
user 185.77
sys 4.23

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/931832/ft1_filtered_4FGL_J1501.0+2238_daily_bin31.fits scfile=/scratch/kocevski/931832/ft2_4FGL_J1501.0+2238_daily_bin31.fits outfile=/scratch/kocevski/931832/cmap_247363201_247622401_4FGL_J1501.0+2238_daily_bin31.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931832/ft1_filtered_4FGL_J1501.0+2238_daily_bin31.fits scfile=/scratch/kocevski/931832/ft2_4FGL_J1501.0+2238_daily_bin31.fits outfile=/scratch/kocevski/931832/cmap_HighResolution_247363201_247622401_4FGL_J1501.0+2238_daily_bin31.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58805E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3012       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6810       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2551       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.448       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7571       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.520       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5742       1.0000         .10000E-03   10000.    
    15 'norm      '    7.9497       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4840       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.890       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99249       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0647       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=   9930.091     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2357 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.9529       -.37711E-06** at limit **
   2  norm          4.3011        2.2397        .13847E-07   -.36127E-04
   3  Prefactor     4.6793        6.4069        .31517E-06    .74414E-04
   4  norm          2.2551        1.7515        .49853E-07   -.41617E-04
   5  norm          .10000E-03    2.9656       -.41475E-08** at limit **
   6  Prefactor     .10000E-03    11.513       -.98487E-06** at limit **
   7  Prefactor     .10000E-03    3.7936        .40221E-08** at limit **
   8  Prefactor     .10000E-03    5.4794       -.11136E-05** at limit **
   9  Prefactor     .10000E-03    5.6062        .13647E-05** at limit **
  10  Prefactor     18.446        23.956       -.15213E-06   -.25837E-04
  11  Prefactor     9.7570        7.4917        .27200E-07    .22713E-05
  12  norm          .10000E-03    11.840        .11693E-05** at limit **
  13  Prefactor     45.520        32.569       -.33079E-07   -.62606E-05
  14  Prefactor     8.5741        7.0969        .14345E-05   -.48351E-03
  15  norm          7.9496        1.9307       -.15869E-07   -.27999E-04
  16  Prefactor     24.940        29.691       -.18664E-07   -.14130E-04
  17  Prefactor     7.4848        10.990        .35267E-07   -.37733E-04
  18  Prefactor     10.890        27.147       -.57642E-07   -.62703E-05
  19  Prefactor     .10000E-03    .83532        .16659E-09** at limit **
  20  Prefactor     .10000E-03    7.6639       -.30528E-06** at limit **
  21  Normalizat    .99252        .17401       -.15385E-06    .11843E-03
  22  Prefactor     1.0647        .12120       -.88495E-07    .16360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  norm       = 4.30114
  Prefactor  = 4.67931
  norm       = 2.25508
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 18.4463
  Prefactor  = 9.75699
  norm       = 0.000100001
  Prefactor  = 45.5198
  Prefactor  = 8.57412
  norm       = 7.94956
  Prefactor  = 24.9404
  Prefactor  = 7.48478
  Prefactor  = 10.89
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.992517
  Prefactor  = 1.06469
 **********
 **   18 **HESSE 
 **********

 FCN=   9930.091     FROM HESSE     STATUS=OK           348 CALLS     2705 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    49.645        .38860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3011        2.2394        .10417E-03   -1.5293    
   3  Prefactor     4.6793        5.9194        .18600E-03   -1.5275    
   4  norm          2.2551        1.7418        .11246E-03   -1.5408    
   5  norm          .10000E-03    3.0953        .33501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.446        23.983        .93251E-04   -1.4849    
  11  Prefactor     9.7570        7.4923        .12829E-03   -1.5083    
  12  norm          .10000E-03    12.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     45.520        32.590        .59426E-04   -1.4358    
  14  Prefactor     8.5741        7.4004        .68448E-03   -1.5122    
  15  norm          7.9496        1.9452        .56198E-04   -1.5144    
  16  Prefactor     24.940        29.742        .80211E-04   -1.4709    
  17  Prefactor     7.4848        11.045        .14660E-03   -1.5161    
  18  Prefactor     10.890        27.120        .12141E-03   -1.5048    
  19  Prefactor     .10000E-03    .85165        .88904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99252        .20451        .31020E-03   -.93282    
  22  Prefactor     1.0647        .14265        .21359E-03   -.90603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46252e-10
Minuit parameter uncertainties:
  1  0.00165041
  2  2.23942
  3  5.92015
  4  1.74179
  5  3.40948e-06
  6  0.000138276
  7  3.43766e-07
  8  0.000107076
  9  0.000133371
  10  23.9954
  11  7.49304
  12  0.000163069
  13  32.6025
  14  7.4012
  15  1.94525
  16  29.7599
  17  11.0483
  18  27.1507
  19  7.10771e-07
  20  3.51263e-05
  21  0.204667
  22  0.142699
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  9.757e+00  7.493e+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.065e+00  1.427e-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:  9.925e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.18
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/931832/likelihoodResults_247363201_247622401_4FGL_J1501.0+2238_daily_bin31.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) = 9929.97931691
delta logL = 0.111484858508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9929.96570843
delta logL = 0.125093337727

Fit tolerance = 1e-08

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

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

 FCN=   9929.966     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      272 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8454        135.43        .35784E-02    .20294E-03
   2  Index         2.2642        3.2982        .12160        .20298E-03
   3  Normalizat    .98160        .85610E-01    .70458E-01    .39075E-04
   4  Prefactor     1.0676        .47385E-01    .38972E-01    .16667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.84542
  Index      = 2.26419
  Normalizat = 0.981602
  Prefactor  = 1.06762
 **********
 **   18 **HESSE 
 **********

 FCN=   9929.966     FROM HESSE     STATUS=OK            33 CALLS      305 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8454        8.1890        .14313E-03   -1.5148    
   2  Index         2.2642        .58433        .73654E-02   -.57897    
   3  Normalizat    .98160        .19888        .31171E-03   -.93649    
   4  Prefactor     1.0676        .14133        .21330E-03   -.90508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51262e-11
Minuit parameter uncertainties:
  1  8.19021
  2  0.58625
  3  0.199032
  4  0.141375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931832': 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) = 9929.96570635
delta logL = 0.125095414556

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  7.845e+00  8.190e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.264e+00  5.862e-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.068e+00  1.414e-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:  9.816e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 225.257 22.636
Photon Index (Free Index): 2.26 +/- 0.59
Photon Flux (Free Index): 4.31e-08 +/- 3.67e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.51e-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/931832/cmap_HighResolution_247363201_247622401_4FGL_J1501.0+2238_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='1.73e-05', photon_flux_error='2.43e-08', dlogl='1.25e-01', energy_flux='2.18e-05', photon_flux2='4.31e-08', job_status='DONE', time_completed='2021-09-10 17:47:25.722691', photon_index_error2='0.59', photon_index2='2.26', ts='3.18', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='8.65e-08', energy_flux_error2='1.51e-05', EG='0.99', time_epoch_completed='1631321245.72', return_code='0', job_id='931832', GAL2='1.07', EG2='0.98', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='3.67e-08', ts2='3.47', photon_index='2.00' WHERE bin_id='31' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:47:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 931832: <4FGL_J1501.0+2238_daily_bin31> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin31 225.257 22.6364 247363201 247622401 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 :                                   764.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

