/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 2 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 = 7344
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1501.0+2238_daily_bin367
RA = 225.257, Dec = 22.6364
tmin = 334454401, tmax = 334713601
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='933300', job_status='RUN', time_executed='2021-09-10 17:36:21.689232', time_epoch_executed='1631320581.69' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933300

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933300/ft1_4FGL_J1501.0+2238_daily_bin367.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933300/ft2_4FGL_J1501.0+2238_daily_bin367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933300/ft1_4FGL_J1501.0+2238_daily_bin367.fits outfile=/scratch/kocevski/933300/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin367.fits ra=225.257 dec=22.6364 rad=12.0 tmin=334454401.0 tmax=334713601.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.47
user 3.25
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933300/ft1_filtered_4FGL_J1501.0+2238_daily_bin367.fits evtable="EVENTS" scfile=/scratch/kocevski/933300/ft2_4FGL_J1501.0+2238_daily_bin367.fits sctable="SC_DATA" expcube=/scratch/kocevski/933300/ltcube_334454401_334713601_4FGL_J1501.0+2238_daily_bin367.fits outfile=/scratch/kocevski/933300/expmap_334454401_334713601_4FGL_J1501.0+2238_daily_bin367.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/933300/ltcube_334454401_334713601_4FGL_J1501.0+2238_daily_bin367.fits
.....................!
real 191.24
user 185.47
sys 5.17

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/933300/ft1_filtered_4FGL_J1501.0+2238_daily_bin367.fits scfile=/scratch/kocevski/933300/ft2_4FGL_J1501.0+2238_daily_bin367.fits outfile=/scratch/kocevski/933300/cmap_334454401_334713601_4FGL_J1501.0+2238_daily_bin367.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933300/ft1_filtered_4FGL_J1501.0+2238_daily_bin367.fits scfile=/scratch/kocevski/933300/ft2_4FGL_J1501.0+2238_daily_bin367.fits outfile=/scratch/kocevski/933300/cmap_HighResolution_334454401_334713601_4FGL_J1501.0+2238_daily_bin367.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.4636       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5658       1.0000         .10000E-03   10000.    
     4 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5122       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.576       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3842       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.109       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83731       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2410       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=   7489.462     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     1992 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8541       -.96943E-07** at limit **
   2  norm          9.4635        3.4654       -.46346E-08    .74373E-05
   3  Prefactor     5.5691        6.7224       -.28123E-06   -.22300E-03
   4  norm          .10000E-03    2.5557        .36111E-08** at limit **
   5  norm          4.5120        3.5294       -.29728E-06    .65558E-04
   6  Prefactor     .10000E-03    11.324       -.42717E-05** at limit **
   7  Prefactor     .10000E-03    18.662        .42410E-05** at limit **
   8  Prefactor     .10000E-03    7.0394       -.33878E-05** at limit **
   9  Prefactor     .10000E-03    20.892       -.11512E-04** at limit **
  10  Prefactor     .10000E-03    17.458        .12053E-04** at limit **
  11  Prefactor     .10000E-03    6.7201        .23121E-05** at limit **
  12  norm          .10000E-03    35.661        .73877E-05** at limit **
  13  Prefactor     .10000E-03    87.609       -.49393E-05** at limit **
  14  Prefactor     .10000E-03    2.9490        .10978E-08** at limit **
  15  norm          10.575        2.1136       -.32744E-07   -.46462E-03
  16  Prefactor     3.3794        94.744       -.11912E-04   -.11656E-04
  17  Prefactor     .10000E-03    8.7660        .29936E-05** at limit **
  18  Prefactor     27.104        26.061       -.18723E-05   -.16441E-04
  19  Prefactor     .10000E-03    .63938       -.33953E-07** at limit **
  20  Prefactor     .10000E-03    20.207       -.63498E-05** at limit **
  21  Normalizat    .83743        .20774       -.36230E-07    .19909E-04
  22  Prefactor     1.2409        .14347        .28831E-06    .50790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.46347
  Prefactor  = 5.56907
  norm       = 0.0001
  norm       = 4.51199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5748
  Prefactor  = 3.37939
  Prefactor  = 0.0001
  Prefactor  = 27.1036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.837427
  Prefactor  = 1.24089
 **********
 **   18 **HESSE 
 **********

 FCN=   7489.462     FROM HESSE     STATUS=OK           332 CALLS     2324 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.4635        3.4654        .94331E-04   -1.5093    
   3  Prefactor     5.5691        6.7249        .17029E-03   -1.5236    
   4  norm          .10000E-03    2.6514        .26984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5120        3.5294        .13956E-03   -1.5283    
   6  Prefactor     .10000E-03    11.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    35.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    88.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9553        .14513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.575        2.1153        .53699E-04   -1.5057    
  16  Prefactor     3.3794        94.984        .21994E-03   -1.5340    
  17  Prefactor     .10000E-03    8.8457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.104        26.072        .76942E-04   -1.4666    
  19  Prefactor     .10000E-03    .64155        .67572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83743        .23821        .34614E-03   -.98695    
  22  Prefactor     1.2409        .16520        .20394E-03   -.85082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67549e-11
Minuit parameter uncertainties:
  1  3.58739e-06
  2  3.46547
  3  6.72583
  4  2.26854e-07
  5  3.52954
  6  4.87904e-07
  7  3.67732e-06
  8  3.54924e-06
  9  2.15182e-05
  10  4.02506e-06
  11  2.94366e-06
  12  1.42632e-05
  13  0.000134255
  14  3.99662e-08
  15  2.11535
  16  35.8948
  17  3.98512e-06
  18  26.083
  19  1.20135e-07
  20  1.98061e-05
  21  0.238509
  22  0.165267
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  2.944e-06  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.241e+00  1.653e-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.374e-01  2.385e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933300/likelihoodResults_334454401_334713601_4FGL_J1501.0+2238_daily_bin367.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) = 7489.46257299
delta logL = -0.000706102001459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7489.46186864
delta logL = -1.74287742993e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12092E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0439       1.0000          .0000       10.000    
     3 'Normalizat'    .83714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2411       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=   7487.499     FROM MIGRAD    STATUS=CONVERGED    219 CALLS      371 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52257E-01    .41499        .18142E-02    .35869E-02
   2  Index         4.7921        1.7880        .79743E-01    .25236E-03
   3  Normalizat    .68083        .59021E-01    .34614E-02   -.73570E-05
   4  Prefactor     1.3002        .41346E-01    .20394E-03   -.21239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0522574
  Index      = 4.79208
  Normalizat = 0.680831
  Prefactor  = 1.30016
 **********
 **   18 **HESSE 
 **********

 FCN=   7487.499     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      402 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52257E-01    .81377        .10893E-04   -1.5662    
   2  Index         4.7921        2.8029        .30926E-02   -.41595E-01
   3  Normalizat    .68083        .21096        .13846E-03   -1.0465    
   4  Prefactor     1.3002        .14578        .81574E-05   -.83302    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.87917e-07
Minuit parameter uncertainties:
  1  0.412045
  2  2.97578
  3  0.211209
  4  0.145824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933300': 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) = 7487.49943931
delta logL = 1.96242757904

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  5.226e-02  4.120e-01  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  4.792e+00  2.976e+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.300e+00  1.458e-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:  6.808e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.32
Ra Dec: 225.257 22.636
Photon Index (Free Index): 4.79 +/- 2.98
Photon Flux (Free Index): 1.43e-07 +/- 8.26e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/933300/cmap_HighResolution_334454401_334713601_4FGL_J1501.0+2238_daily_bin367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', comment='SUCCESS', energy_flux2='1.94e-05', dlogl='1.96e+00', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-10 17:46:48.319535', photon_index_error2='2.98', photon_index2='4.79', ts='-0.00', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='7.36e-08', energy_flux_error2='1.29e-05', EG='0.84', time_epoch_completed='1631321208.32', return_code='0', job_id='933300', GAL2='1.30', EG2='0.68', return_code2='102', photon_flux_error2='8.26e-08', ts2='4.32', photon_index='2.00' WHERE bin_id='367' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:46:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 933300: <4FGL_J1501.0+2238_daily_bin367> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin367> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 17:36:09 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:36:10 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:36:10 2021
Terminated at Fri Sep 10 17:46:49 2021
Results reported at Fri Sep 10 17:46:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin367 225.257 22.6364 334454401 334713601 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 :                                   625.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            640 sec.

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

