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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1464
RA = 225.257, Dec = 22.6364
tmin = 618796801, tmax = 619056001
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='938079', job_status='RUN', time_executed='2021-09-10 17:51:55.622856', time_epoch_executed='1631321515.62' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938079

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938079/ft1_4FGL_J1501.0+2238_daily_bin1464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938079/ft2_4FGL_J1501.0+2238_daily_bin1464.fits


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

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938079/ft2_4FGL_J1501.0+2238_daily_bin1464.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/938079/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1464.fits evtable="EVENTS" outfile="/scratch/kocevski/938079/ft1_filtered_4FGL_J1501.0+2238_daily_bin1464.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.56
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938079/ft1_filtered_4FGL_J1501.0+2238_daily_bin1464.fits" evtable="EVENTS" scfile=/scratch/kocevski/938079/ft2_4FGL_J1501.0+2238_daily_bin1464.fits sctable="SC_DATA" outfile=/scratch/kocevski/938079/ltcube_618796801_619056001_4FGL_J1501.0+2238_daily_bin1464.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/938079/ft2_4FGL_J1501.0+2238_daily_bin1464.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938079/ft1_filtered_4FGL_J1501.0+2238_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/938079/ft2_4FGL_J1501.0+2238_daily_bin1464.fits sctable="SC_DATA" expcube=/scratch/kocevski/938079/ltcube_618796801_619056001_4FGL_J1501.0+2238_daily_bin1464.fits outfile=/scratch/kocevski/938079/expmap_618796801_619056001_4FGL_J1501.0+2238_daily_bin1464.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/938079/ltcube_618796801_619056001_4FGL_J1501.0+2238_daily_bin1464.fits
.....................!
real 191.52
user 185.66
sys 5.47

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938079/ft1_filtered_4FGL_J1501.0+2238_daily_bin1464.fits scfile=/scratch/kocevski/938079/ft2_4FGL_J1501.0+2238_daily_bin1464.fits outfile=/scratch/kocevski/938079/cmap_HighResolution_618796801_619056001_4FGL_J1501.0+2238_daily_bin1464.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.415       1.0000         .10000E-03   10000.    
     2 'norm      '    9.3525       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7525       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.904       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.123       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.061       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .68167       1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.154       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13300E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.863       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5081       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65861       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=   6943.389     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2393 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.413        11.108        .20267E-02    .23453E-04
   2  norm          9.3527        3.6454        .32762E-02    .45352E-04
   3  Prefactor     .10000E-03    1.7588        .90712E-02** at limit **
   4  norm          .10000E-03    1.3987        .90712E-02** at limit **
   5  norm          3.7522        4.3947        .52106E-02    .40336E-03
   6  Prefactor     .10000E-03    102.59        .90712E-02** at limit **
   7  Prefactor     .10000E-03    14.968        .90712E-02** at limit **
   8  Prefactor     .10000E-03    23.183        .90712E-02** at limit **
   9  Prefactor     14.903        16.366        .25937E-02   -.23402E-04
  10  Prefactor     .10000E-03    31.855        .90712E-02** at limit **
  11  Prefactor     12.124        9.4181        .28762E-02    .92152E-03
  12  norm          .10000E-03    15.203        .90712E-02** at limit **
  13  Prefactor     18.054        35.416        .23561E-02    .14540E-02
  14  Prefactor     .10000E-03    7.2337        .90712E-02** at limit **
  15  norm          .68163        .93017        .19003E-01    .98471E-03
  16  Prefactor     61.154        44.079        .12827E-02   -.96676E-04
  17  Prefactor     .10000E-03    1.9937        .90712E-02** at limit **
  18  Prefactor     .10000E-03    17.966        .90712E-02** at limit **
  19  Prefactor     .10000E-03    1.3708        .30367E-01** at limit **
  20  Prefactor     35.864        43.390        .16730E-02   -.28702E-03
  21  Normalizat    1.5081        .20132        .58728E-01    .13548E-04
  22  Prefactor     .65859        .13614        .41848E-01    .23614E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4135
  norm       = 9.35267
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.75218
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.9029
  Prefactor  = 0.0001
  Prefactor  = 12.1237
  norm       = 0.000100003
  Prefactor  = 18.0537
  Prefactor  = 0.0001
  norm       = 0.681628
  Prefactor  = 61.1543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.8641
  Normalizat = 1.50812
  Prefactor  = 0.658589
 **********
 **   18 **HESSE 
 **********

 FCN=   6943.389     FROM HESSE     STATUS=OK           338 CALLS     2731 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.413        11.109        .81070E-04   -1.4719    
   2  norm          9.3527        3.6448        .95668E-04   -1.5096    
   3  Prefactor     .10000E-03    1.7610        .10790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4280        .96183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7522        4.3845        .18195E-03   -1.5321    
   6  Prefactor     .10000E-03    103.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.903        16.365        .10375E-03   -1.4936    
  10  Prefactor     .10000E-03    31.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.124        9.4172        .57525E-03   -1.5011    
  12  norm          .10000E-03    15.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.054        35.414        .94244E-04   -1.4858    
  14  Prefactor     .10000E-03    7.3588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68163        .82443        .90196E-03   -1.5543    
  16  Prefactor     61.154        44.091        .51309E-04   -1.4142    
  17  Prefactor     .10000E-03    1.9952        .11488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6300        .18940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     35.864        43.435        .66921E-04   -1.4510    
  21  Normalizat    1.5081        .23443        .25969E-03   -.77550    
  22  Prefactor     .65859        .15826        .25159E-03   -1.0517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55704e-08
Minuit parameter uncertainties:
  1  11.1104
  2  3.64487
  3  2.07619e-06
  4  2.16901e-06
  5  4.38492
  6  9.68453e-05
  7  0.000352924
  8  2.78245e-05
  9  16.3699
  10  0.000155582
  11  9.41836
  12  0.000460275
  13  35.4549
  14  2.92634e-06
  15  0.824443
  16  44.1147
  17  8.87738e-06
  18  6.80358e-05
  19  3.65909e-05
  20  43.4737
  21  0.234599
  22  0.158365
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.212e+01  9.418e+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:  6.586e-01  1.584e-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.508e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.93e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 2.10e-05

TS (Fixed Index): 3.08
Ra Dec: 225.257 22.636
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938079/likelihoodResults_618796801_619056001_4FGL_J1501.0+2238_daily_bin1464.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) = 6942.97052865
delta logL = 0.418143149033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6942.96600249
delta logL = 0.4226693113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0397       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5855       1.0000          .0000       10.000    
     3 'Normalizat'    1.4699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67070       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=   6942.966     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      282 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0402        10.153        .13760E-03   -.53539E-04
   2  Index         2.5854        .80387        .54015E-02    .65112E-03
   3  Normalizat    1.4699        .23917        .26235E-03    .22035E-03
   4  Prefactor     .67069        .15756        .24938E-03    .29076E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.04016
  Index      = 2.58544
  Normalizat = 1.4699
  Prefactor  = 0.670694
 **********
 **   18 **HESSE 
 **********

 FCN=   6942.966     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0402        8.6042        .55040E-05   -1.5177    
   2  Index         2.5854        .68136        .10803E-02   -.50398    
   3  Normalizat    1.4699        .23751        .52470E-04   -.78628    
   4  Prefactor     .67069        .15699        .99752E-05   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58425e-11
Minuit parameter uncertainties:
  1  8.60569
  2  0.684141
  3  0.237688
  4  0.15709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938079': 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) = 6942.96600249
delta logL = 0.422669314309

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  7.040e+00  8.606e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.585e+00  6.841e-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:  6.707e-01  1.571e-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.470e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.05
Ra Dec: 225.257 22.636
Photon Index (Free Index): 2.59 +/- 0.68
Photon Flux (Free Index): 7.81e-08 +/- 6.51e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/938079/cmap_HighResolution_618796801_619056001_4FGL_J1501.0+2238_daily_bin1464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.20e-03', comment='SUCCESS', photon_flux='3.93e-08', energy_flux2='2.08e-05', photon_flux_error='3.05e-08', dlogl='4.23e-01', energy_flux='2.71e-05', photon_flux2='7.81e-08', job_status='DONE', time_completed='2021-09-10 18:02:57.854100', photon_index_error2='0.68', photon_index2='2.59', ts='3.08', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.39e-05', EG='1.51', time_epoch_completed='1631322177.85', return_code='0', job_id='938079', GAL2='0.67', EG2='1.47', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='6.51e-08', ts2='4.05', photon_index='2.00' WHERE bin_id='1464' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:02:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 938079: <4FGL_J1501.0+2238_daily_bin1464> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1464> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 17:51:38 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:51: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:51:39 2021
Terminated at Fri Sep 10 18:02:58 2021
Results reported at Fri Sep 10 18:02:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1464 225.257 22.6364 618796801 619056001 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 :                                   630.17 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             364.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

