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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1519
RA = 225.257, Dec = 22.6364
tmin = 633052801, tmax = 633312001
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='939186', job_status='RUN', time_executed='2021-09-10 18:00:08.638752', time_epoch_executed='1631322008.64' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939186/ft1_4FGL_J1501.0+2238_daily_bin1519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939186/ft2_4FGL_J1501.0+2238_daily_bin1519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939186/ft1_4FGL_J1501.0+2238_daily_bin1519.fits outfile=/scratch/kocevski/939186/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1519.fits ra=225.257 dec=22.6364 rad=12.0 tmin=633052801.0 tmax=633312001.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.66
user 3.44
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939186/ft1_filtered_4FGL_J1501.0+2238_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/939186/ft2_4FGL_J1501.0+2238_daily_bin1519.fits sctable="SC_DATA" expcube=/scratch/kocevski/939186/ltcube_633052801_633312001_4FGL_J1501.0+2238_daily_bin1519.fits outfile=/scratch/kocevski/939186/expmap_633052801_633312001_4FGL_J1501.0+2238_daily_bin1519.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/939186/ltcube_633052801_633312001_4FGL_J1501.0+2238_daily_bin1519.fits
.....................!
real 191.31
user 185.46
sys 5.45

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/939186/ft1_filtered_4FGL_J1501.0+2238_daily_bin1519.fits scfile=/scratch/kocevski/939186/ft2_4FGL_J1501.0+2238_daily_bin1519.fits outfile=/scratch/kocevski/939186/cmap_633052801_633312001_4FGL_J1501.0+2238_daily_bin1519.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939186/ft1_filtered_4FGL_J1501.0+2238_daily_bin1519.fits scfile=/scratch/kocevski/939186/ft2_4FGL_J1501.0+2238_daily_bin1519.fits outfile=/scratch/kocevski/939186/cmap_HighResolution_633052801_633312001_4FGL_J1501.0+2238_daily_bin1519.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.8288       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8640       1.0000         .10000E-03   10000.    
     4 'norm      '    5.0635       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3918       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.738       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.818       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27748       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.530       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6306       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2804       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85393       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0512       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=   7396.045     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     2791 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1560        .17012E-02** at limit **
   2  norm          4.8289        2.2733        .86462E-04    .52727E-04
   3  Prefactor     1.8663        5.6981        .30516E-03   -.71045E-04
   4  norm          5.0633        3.1585        .11463E-03    .11941E-03
   5  norm          1.3913        3.4853        .24569E-03   -.62421E-04
   6  Prefactor     29.732        27.451        .73470E-04    .26925E-04
   7  Prefactor     16.815        20.050        .97663E-04    .52150E-04
   8  Prefactor     .21641        13.110        .78675E-01    .29348E-03
   9  Prefactor     .10000E-03    13.033        .18142E-02** at limit **
  10  Prefactor     .10000E-03    67.449        .18142E-02** at limit **
  11  Prefactor     .10000E-03    22.877        .36285E-03** at limit **
  12  norm          .10000E-03    14.339        .18142E-02** at limit **
  13  Prefactor     .10000E-03    49.068        .18142E-02** at limit **
  14  Prefactor     .10000E-03    1.4246        .10020E-02** at limit **
  15  norm          .10000E-03    .31523        .93094E-04** at limit **
  16  Prefactor     63.525        37.918        .50346E-04   -.21452E-04
  17  Prefactor     6.6297        6.5108        .77919E-03    .25902E-03
  18  Prefactor     .10000E-03    8.9229        .18142E-02** at limit **
  19  Prefactor     3.2805        2.0978        .96121E-04    .17233E-03
  20  Prefactor     .10000E-03    20.119        .18142E-02** at limit **
  21  Normalizat    .85410        .20334        .29351E-03    .24251E-03
  22  Prefactor     1.0510        .14245        .19484E-03    .60398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.82895
  Prefactor  = 1.86631
  norm       = 5.06331
  norm       = 1.39127
  Prefactor  = 29.7321
  Prefactor  = 16.8154
  Prefactor  = 0.216412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.5249
  Prefactor  = 6.62969
  Prefactor  = 0.0001
  Prefactor  = 3.28048
  Prefactor  = 0.0001
  Normalizat = 0.854099
  Prefactor  = 1.05101
 **********
 **   18 **HESSE 
 **********

 FCN=   7396.045     FROM HESSE     STATUS=OK           330 CALLS     3121 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1577        .34023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.8289        2.2733        .34585E-05   -1.5268    
   3  Prefactor     1.8663        5.6965        .12206E-04   -1.5435    
   4  norm          5.0633        3.1582        .45852E-05   -1.5258    
   5  norm          1.3913        3.4850        .98276E-05   -1.5472    
   6  Prefactor     29.732        27.454        .29388E-05   -1.4617    
   7  Prefactor     16.815        20.047        .39065E-05   -1.4888    
   8  Prefactor     .21641        11.859        .84326E-01   -1.5615    
   9  Prefactor     .10000E-03    13.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    67.465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.878        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.339        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.075        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4247        .20040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .31523        .18619E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     63.525        37.928        .20138E-05   -1.4112    
  17  Prefactor     6.6297        6.5097        .31168E-04   -1.5193    
  18  Prefactor     .10000E-03    8.9230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2805        2.0977        .38449E-05   -1.5346    
  20  Prefactor     .10000E-03    20.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85410        .20346        .11740E-04   -.98092    
  22  Prefactor     1.0510        .14254        .38968E-04   -.91048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21455e-10
Minuit parameter uncertainties:
  1  9.86842e-06
  2  2.27331
  3  5.69819
  4  3.15828
  5  3.48546
  6  27.4655
  7  20.0548
  8  3.20396
  9  5.18331e-05
  10  3.79745e-05
  11  1.28927e-05
  12  3.91759e-05
  13  7.03078e-05
  14  7.85473e-07
  15  3.24624e-06
  16  37.9424
  17  6.51038
  18  8.37222e-06
  19  2.09772
  20  5.74155e-05
  21  0.203638
  22  0.142587
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  1.289e-05  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.051e+00  1.426e-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:  8.541e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/939186/likelihoodResults_633052801_633312001_4FGL_J1501.0+2238_daily_bin1519.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): 102
logL (Free Index) = 7396.04543108
delta logL = -0.000208615748306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7396.04522425
delta logL = -1.79298240255e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23135E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1067       1.0000          .0000       10.000    
     3 'Normalizat'    .85378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0512       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=   7395.792     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      314 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16884E-02    .38331E-01    .90712E-03** at limit **
   2  Index         5.5614        2.2724        .11291        .16197E-03
   3  Normalizat    .81443        .28631E-01    .67806E-01    .27840E-03
   4  Prefactor     1.0659        .20975E-01    .39838E-01    .40477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00168844
  Index      = 5.56142
  Normalizat = 0.81443
  Prefactor  = 1.0659
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.792     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      345 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16884E-02    .18896        .52182E-05   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.5614        7.7413        .63310E-02    .11252    
   3  Normalizat    .81443        .14592        .29999E-03   -.99536    
   4  Prefactor     1.0659        .10491        .19363E-03   -.90564    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43002e-06
Minuit parameter uncertainties:
  1  0.03465
  2  7.47992
  3  0.14599
  4  0.104932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939186': 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): 102
logL (Free Index) = 7395.79247466
delta logL = 0.252747804141

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.688e-03  3.465e-02  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  5.561e+00  7.480e+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:  1.066e+00  1.049e-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:  8.144e-01  1.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/939186/cmap_HighResolution_633052801_633312001_4FGL_J1501.0+2238_daily_bin1519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-10 18:11:42.259564', job_id='939186', GAL2='1.07', fit_tolerance='1e-08', EG2='0.81', EG='0.85', time_epoch_completed='1631322702.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.53e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1519' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:11:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 939186: <4FGL_J1501.0+2238_daily_bin1519> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1519> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 17:56:04 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:56:06 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:56:06 2021
Terminated at Fri Sep 10 18:11:42 2021
Results reported at Fri Sep 10 18:11:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1519 225.257 22.6364 633052801 633312001 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 :                                   690.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

