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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1425
RA = 225.257, Dec = 22.6364
tmin = 608688001, tmax = 608947201
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='938023', job_status='RUN', time_executed='2021-09-10 17:55:03.856738', time_epoch_executed='1631321703.86' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938023

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938023/ft1_4FGL_J1501.0+2238_daily_bin1425.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938023/ft2_4FGL_J1501.0+2238_daily_bin1425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938023/ft1_4FGL_J1501.0+2238_daily_bin1425.fits outfile=/scratch/kocevski/938023/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1425.fits ra=225.257 dec=22.6364 rad=12.0 tmin=608688001.0 tmax=608947201.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.99
user 2.78
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938023/ft1_filtered_4FGL_J1501.0+2238_daily_bin1425.fits" evtable="EVENTS" scfile=/scratch/kocevski/938023/ft2_4FGL_J1501.0+2238_daily_bin1425.fits sctable="SC_DATA" outfile=/scratch/kocevski/938023/ltcube_608688001_608947201_4FGL_J1501.0+2238_daily_bin1425.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/938023/ft2_4FGL_J1501.0+2238_daily_bin1425.fits
.....................!
real 12.52
user 12.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938023/ft1_filtered_4FGL_J1501.0+2238_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/938023/ft2_4FGL_J1501.0+2238_daily_bin1425.fits sctable="SC_DATA" expcube=/scratch/kocevski/938023/ltcube_608688001_608947201_4FGL_J1501.0+2238_daily_bin1425.fits outfile=/scratch/kocevski/938023/expmap_608688001_608947201_4FGL_J1501.0+2238_daily_bin1425.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/938023/ltcube_608688001_608947201_4FGL_J1501.0+2238_daily_bin1425.fits
.....................!
real 191.16
user 186.11
sys 4.54

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/938023/ft1_filtered_4FGL_J1501.0+2238_daily_bin1425.fits scfile=/scratch/kocevski/938023/ft2_4FGL_J1501.0+2238_daily_bin1425.fits outfile=/scratch/kocevski/938023/cmap_608688001_608947201_4FGL_J1501.0+2238_daily_bin1425.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/938023/ft1_filtered_4FGL_J1501.0+2238_daily_bin1425.fits scfile=/scratch/kocevski/938023/ft2_4FGL_J1501.0+2238_daily_bin1425.fits outfile=/scratch/kocevski/938023/cmap_HighResolution_608688001_608947201_4FGL_J1501.0+2238_daily_bin1425.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.782       1.0000         .10000E-03   10000.    
     2 'norm      '    5.2093       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2450       1.0000         .10000E-03   10000.    
     4 'norm      '    8.0219       1.0000         .10000E-03   10000.    
     5 'norm      '    6.6473       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.997       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3089       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1950       1.0000         .10000E-03   10000.    
    15 'norm      '    .79556       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5702       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.476       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5697       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .57393       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=   6821.068     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2362 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.783        16.451       -.65512E-07   -.30389E-04
   2  norm          5.2093        2.7439       -.20934E-06   -.45407E-04
   3  Prefactor     6.2448        11.762       -.52527E-06   -.13858E-03
   4  norm          8.0223        4.3290        .12678E-05   -.68290E-03
   5  norm          6.6475        4.0434       -.38620E-06    .80698E-04
   6  Prefactor     .10000E-03    34.534        .54808E-05** at limit **
   7  Prefactor     .10000E-03    22.162       -.75409E-05** at limit **
   8  Prefactor     .10000E-03    13.754       -.21523E-05** at limit **
   9  Prefactor     29.001        29.195        .24356E-05   -.60586E-04
  10  Prefactor     .10000E-03    19.824        .21167E-05** at limit **
  11  Prefactor     7.3090        6.8397       -.69074E-06    .67231E-04
  12  norm          .10000E-03    16.231        .30396E-05** at limit **
  13  Prefactor     .10000E-03    15.514       -.62101E-07** at limit **
  14  Prefactor     1.1950        4.4425       -.84177E-05   -.77499E-03
  15  norm          .79562        .85230       -.13486E-06   -.81682E-03
  16  Prefactor     .10000E-03    69.133       -.40021E-05** at limit **
  17  Prefactor     .10000E-03    6.1276        .25121E-07** at limit **
  18  Prefactor     .10000E-03    13.501        .58495E-06** at limit **
  19  Prefactor     1.5704        2.8587       -.38957E-06   -.78134E-03
  20  Prefactor     35.459        44.233       -.17692E-04    .30350E-03
  21  Normalizat    1.5698        .19281        .11733E-05    .16142E-03
  22  Prefactor     .57390        .13117        .15321E-05    .14264E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.783
  norm       = 5.2093
  Prefactor  = 6.24478
  norm       = 8.02227
  norm       = 6.64753
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 29.0012
  Prefactor  = 0.0001
  Prefactor  = 7.30904
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.19504
  norm       = 0.795619
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.57041
  Prefactor  = 35.4591
  Normalizat = 1.56975
  Prefactor  = 0.573902
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.068     FROM HESSE     STATUS=OK           342 CALLS     2704 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.783        16.343        .11671E-03   -1.5021    
   2  norm          5.2093        2.7435        .95894E-04   -1.5251    
   3  Prefactor     6.2448        11.680        .16063E-03   -1.5208    
   4  norm          8.0223        4.3001        .11859E-03   -1.5141    
   5  norm          6.6475        4.0430        .12517E-03   -1.5192    
   6  Prefactor     .10000E-03    34.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.001        29.155        .74401E-04   -1.4630    
  10  Prefactor     .10000E-03    19.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3090        6.8377        .14836E-03   -1.5167    
  12  norm          .10000E-03    16.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1950        4.7119        .34588E-03   -1.5489    
  15  norm          .79562        .81655        .75175E-03   -1.5530    
  16  Prefactor     .10000E-03    69.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5704        2.8498        .17615E-03   -1.5457    
  20  Prefactor     35.459        43.559        .67283E-04   -1.4516    
  21  Normalizat    1.5698        .22539        .24478E-03   -.75837    
  22  Prefactor     .57390        .15243        .26188E-03   -1.0870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26886e-09
Minuit parameter uncertainties:
  1  16.3491
  2  2.74353
  3  11.6847
  4  4.30026
  5  4.04319
  6  0.000436626
  7  0.000215577
  8  3.14643e-05
  9  29.1696
  10  0.000110784
  11  6.8384
  12  0.000111069
  13  1.21941e-05
  14  4.71331
  15  0.816565
  16  0.000574298
  17  7.46671e-06
  18  1.86137e-05
  19  2.85
  20  43.5979
  21  0.225539
  22  0.15254
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  7.309e+00  6.838e+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:  5.739e-01  1.525e-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.570e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.37e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/938023/likelihoodResults_608688001_608947201_4FGL_J1501.0+2238_daily_bin1425.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) = 6821.03732775
delta logL = 0.0310742855772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6821.02647478
delta logL = 0.0419272581357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1577       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2861       1.0000          .0000       10.000    
     3 'Normalizat'    1.5588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57703       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=   6821.026     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      267 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1559        8.9237        .16178E-03   -.55795E-04
   2  Index         2.2868        1.1951        .97559E-02   -.39362E-04
   3  Normalizat    1.5588        .22781        .24546E-03   -.66525E-03
   4  Prefactor     .57703        .15230        .26120E-03   -.96762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.15589
  Index      = 2.2868
  Normalizat = 1.55877
  Prefactor  = 0.577029
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.026     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1559        7.8303        .64713E-05   -1.5212    
   2  Index         2.2868        1.0497        .39024E-03   -.57358    
   3  Normalizat    1.5588        .22583        .49091E-04   -.76140    
   4  Prefactor     .57703        .15191        .52240E-04   -1.0856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2952e-09
Minuit parameter uncertainties:
  1  7.83158
  2  1.06098
  3  0.225979
  4  0.152017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938023': 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) = 6821.02647451
delta logL = 0.0419275267013

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  6.156e+00  7.832e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.287e+00  1.061e+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:  5.770e-01  1.520e-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.559e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 225.257 22.636
Photon Index (Free Index): 2.29 +/- 1.06
Photon Flux (Free Index): 3.55e-08 +/- 5.67e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/938023/cmap_HighResolution_608688001_608947201_4FGL_J1501.0+2238_daily_bin1425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', comment='SUCCESS', photon_flux='2.37e-08', energy_flux2='1.37e-05', photon_flux_error='2.22e-08', dlogl='4.19e-02', energy_flux='1.63e-05', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-09-10 18:05:19.283784', photon_index_error2='1.06', photon_index2='2.29', ts='2.25', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='8.22e-08', energy_flux_error2='1.32e-05', EG='1.57', time_epoch_completed='1631322319.28', return_code='0', job_id='938023', GAL2='0.58', EG2='1.56', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='5.67e-08', ts2='2.33', photon_index='2.00' WHERE bin_id='1425' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:05:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 938023: <4FGL_J1501.0+2238_daily_bin1425> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1425 225.257 22.6364 608688001 608947201 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 :                                   612.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            827 sec.

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

