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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin50
RA = 225.257, Dec = 22.6364
tmin = 252288001, tmax = 252547201
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='931864', job_status='RUN', time_executed='2021-09-10 17:34:55.869548', time_epoch_executed='1631320495.87' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931864

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931864/ft1_4FGL_J1501.0+2238_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931864/ft2_4FGL_J1501.0+2238_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931864/ft1_4FGL_J1501.0+2238_daily_bin50.fits outfile=/scratch/kocevski/931864/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin50.fits ra=225.257 dec=22.6364 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.55
user 2.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931864/ft2_4FGL_J1501.0+2238_daily_bin50.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/931864/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/931864/ft1_filtered_4FGL_J1501.0+2238_daily_bin50.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.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931864/ft1_filtered_4FGL_J1501.0+2238_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/931864/ft2_4FGL_J1501.0+2238_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/931864/ltcube_252288001_252547201_4FGL_J1501.0+2238_daily_bin50.fits outfile=/scratch/kocevski/931864/expmap_252288001_252547201_4FGL_J1501.0+2238_daily_bin50.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/931864/ltcube_252288001_252547201_4FGL_J1501.0+2238_daily_bin50.fits
.....................!
real 190.49
user 185.61
sys 4.52

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/931864/ft1_filtered_4FGL_J1501.0+2238_daily_bin50.fits scfile=/scratch/kocevski/931864/ft2_4FGL_J1501.0+2238_daily_bin50.fits outfile=/scratch/kocevski/931864/cmap_252288001_252547201_4FGL_J1501.0+2238_daily_bin50.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931864/ft1_filtered_4FGL_J1501.0+2238_daily_bin50.fits scfile=/scratch/kocevski/931864/ft2_4FGL_J1501.0+2238_daily_bin50.fits outfile=/scratch/kocevski/931864/cmap_HighResolution_252288001_252547201_4FGL_J1501.0+2238_daily_bin50.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.6785       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25023E-02   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 '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.589       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2610       1.0000         .10000E-03   10000.    
    12 'norm      '    30.726       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.132       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.436       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36287E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.780       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2677       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83793       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=   8800.632     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2392 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8238        .32058E-07** at limit **
   2  norm          5.6777        2.6811       -.16897E-06   -.15082E-04
   3  Prefactor     .10018E-03    2.3901       -.24785E-06** at limit **
   4  norm          .10000E-03    .58318       -.48073E-07** at limit **
   5  norm          .10000E-03    2.3566       -.63287E-07** at limit **
   6  Prefactor     .10000E-03    11.827       -.75426E-06** at limit **
   7  Prefactor     .10000E-03    3.8643       -.26034E-05** at limit **
   8  Prefactor     .10000E-03    7.3017        .29788E-06** at limit **
   9  Prefactor     44.584        24.481       -.30054E-05    .50187E-04
  10  Prefactor     .10000E-03    11.322       -.56385E-06** at limit **
  11  Prefactor     3.2607        5.2243       -.52486E-06   -.34900E-03
  12  norm          30.725        29.468       -.14477E-05    .44863E-05
  13  Prefactor     41.119        45.302       -.15899E-04    .24241E-04
  14  Prefactor     .10000E-03    3.9177        .42038E-05** at limit **
  15  norm          13.854        2.2108        .55354E-07    .46083E-02
  16  Prefactor     34.439        27.758        .25078E-05    .23375E-04
  17  Prefactor     .10000E-03    12.186        .12238E-05** at limit **
  18  Prefactor     .10009E-03    283.23       -.18089E-03** at limit **
  19  Prefactor     .10000E-03    1.4861       -.62006E-06** at limit **
  20  Prefactor     12.772        26.153       -.99655E-05    .92823E-06
  21  Normalizat    1.2677        .18620        .27126E-05    .60343E-03
  22  Prefactor     .83797        .12581        .10802E-05    .74493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.67767
  Prefactor  = 0.000100183
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5839
  Prefactor  = 0.0001
  Prefactor  = 3.26069
  norm       = 30.7248
  Prefactor  = 41.119
  Prefactor  = 0.0001
  norm       = 13.8543
  Prefactor  = 34.4395
  Prefactor  = 0.0001
  Prefactor  = 0.000100093
  Prefactor  = 0.000100003
  Prefactor  = 12.7721
  Normalizat = 1.26772
  Prefactor  = 0.837967
 **********
 **   18 **HESSE 
 **********

 FCN=   8800.632     FROM HESSE     STATUS=OK           346 CALLS     2738 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8252        .12370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6777        2.6818        .10189E-03   -1.5231    
   3  Prefactor     .10018E-03    5.2768        .46827E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .58775        .69943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4184        .28117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8652        .18010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     44.584        24.512        .60040E-04   -1.4372    
  10  Prefactor     .10000E-03    11.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2607        5.2145        .22426E-03   -1.5347    
  12  norm          30.725        29.474        .72282E-04   -1.4599    
  13  Prefactor     41.119        45.509        .62503E-04   -1.4425    
  14  Prefactor     .10000E-03    3.9622        .18121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.854        2.2152        .53236E-04   -1.4963    
  16  Prefactor     34.439        27.752        .68288E-04   -1.4534    
  17  Prefactor     .10000E-03    12.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    284.48        .42615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1528        .22116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.772        26.213        .11205E-03   -1.4993    
  21  Normalizat    1.2677        .22321        .28332E-03   -.84535    
  22  Prefactor     .83797        .15031        .23413E-03   -.98344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58741e-09
Minuit parameter uncertainties:
  1  2.27887e-06
  2  2.68187
  3  0.00196554
  4  2.03026e-06
  5  1.32511e-05
  6  2.14741e-05
  7  3.50774e-06
  8  6.26239e-06
  9  24.5176
  10  1.27447e-05
  11  5.21527
  12  29.4875
  13  45.5476
  14  1.71111e-05
  15  2.21519
  16  27.7627
  17  0.000134669
  18  0.0103528
  19  0.000233602
  20  26.2366
  21  0.223377
  22  0.150386
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.261e+00  5.215e+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:  8.380e-01  1.504e-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.268e+00  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/931864/likelihoodResults_252288001_252547201_4FGL_J1501.0+2238_daily_bin50.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) = 8800.63157885
delta logL = 5.7602119341e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8800.63157839
delta logL = 1.0397106962e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2607       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0021       1.0000          .0000       10.000    
     3 'Normalizat'    1.2677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83796       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=   8800.632     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      198 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2534        166.90        .56068E-02    .37910E-03
   2  Index         2.0043        5.9539        .25777        .50964E-04
   3  Normalizat    1.2677        .51500E-01    .64052E-01    .12404E-04
   4  Prefactor     .83798        .32252E-01    .44209E-01    .18168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.2534
  Index      = 2.00435
  Normalizat = 1.26768
  Prefactor  = 0.837979
 **********
 **   18 **HESSE 
 **********

 FCN=   8800.632     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2534        6.1520        .22427E-03   -1.5347    
   2  Index         2.0043        .99982        .11395E-01   -.64241    
   3  Normalizat    1.2677        .21492        .28333E-03   -.84536    
   4  Prefactor     .83798        .14866        .23413E-03   -.98343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17141e-12
Minuit parameter uncertainties:
  1  6.1532
  2  1.01052
  3  0.215075
  4  0.148728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931864': 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) = 8800.6315757
delta logL = 3.72674548998e-06

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.253e+00  6.153e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.004e+00  1.011e+00  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:  8.380e-01  1.487e-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.268e+00  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.57
Ra Dec: 225.257 22.636

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/931864/cmap_HighResolution_252288001_252547201_4FGL_J1501.0+2238_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-09-10 17:46:56.198696', job_id='931864', GAL2='0.84', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631321216.2', return_code2='0', ts='0.57', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.73e-06', ts2='0.57', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='50' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 931864: <4FGL_J1501.0+2238_daily_bin50> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin50 225.257 22.6364 252288001 252547201 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 :                                   720.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

