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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1346
RA = 225.257, Dec = 22.6364
tmin = 588211201, tmax = 588470401
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='937910', job_status='RUN', time_executed='2021-09-10 17:54:18.365690', time_epoch_executed='1631321658.37' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937910/ft1_4FGL_J1501.0+2238_daily_bin1346.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937910/ft2_4FGL_J1501.0+2238_daily_bin1346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937910/ft1_4FGL_J1501.0+2238_daily_bin1346.fits outfile=/scratch/kocevski/937910/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1346.fits ra=225.257 dec=22.6364 rad=12.0 tmin=588211201.0 tmax=588470401.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 4.02
user 3.55
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937910/ft1_filtered_4FGL_J1501.0+2238_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/937910/ft2_4FGL_J1501.0+2238_daily_bin1346.fits sctable="SC_DATA" expcube=/scratch/kocevski/937910/ltcube_588211201_588470401_4FGL_J1501.0+2238_daily_bin1346.fits outfile=/scratch/kocevski/937910/expmap_588211201_588470401_4FGL_J1501.0+2238_daily_bin1346.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/937910/ltcube_588211201_588470401_4FGL_J1501.0+2238_daily_bin1346.fits
.....................!
real 190.78
user 185.18
sys 5.25

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/937910/ft1_filtered_4FGL_J1501.0+2238_daily_bin1346.fits scfile=/scratch/kocevski/937910/ft2_4FGL_J1501.0+2238_daily_bin1346.fits outfile=/scratch/kocevski/937910/cmap_588211201_588470401_4FGL_J1501.0+2238_daily_bin1346.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=225.257 yref=22.6364 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.2301       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1430       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3650       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9973       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7355       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.562       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8496       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.851       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8018       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0074       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3029       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2692       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96266       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=   6845.829     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2362 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4105       -.26448E-05** at limit **
   2  norm          .10000E-03    1.5708       -.85149E-07** at limit **
   3  Prefactor     .10000E-03    8.5077        .25832E-05** at limit **
   4  norm          8.2301        3.4346       -.53272E-06   -.10306E-03
   5  norm          2.1430        2.9861       -.50742E-06   -.27003E-03
   6  Prefactor     6.3629        22.647       -.60182E-05   -.20078E-04
   7  Prefactor     .10000E-03    17.259        .55575E-05** at limit **
   8  Prefactor     .10000E-03    8.6281        .30871E-05** at limit **
   9  Prefactor     .10000E-03    12.815       -.62553E-05** at limit **
  10  Prefactor     4.9702        21.432       -.55523E-04   -.20151E-04
  11  Prefactor     1.7359        12.859       -.21447E-05   -.32522E-03
  12  norm          .10000E-03    13.466       -.47134E-05** at limit **
  13  Prefactor     16.542        37.140       -.39545E-04    .11492E-04
  14  Prefactor     .10000E-03    3.7381       -.80710E-07** at limit **
  15  norm          4.8496        1.5002       -.84214E-07    .85780E-04
  16  Prefactor     17.855        33.666        .56909E-05    .20202E-04
  17  Prefactor     3.8016        6.2746       -.31358E-06   -.21172E-03
  18  Prefactor     5.0067        23.567       -.23102E-05   -.26602E-04
  19  Prefactor     2.3028        1.9441       -.15402E-06   -.14084E-04
  20  Prefactor     .10000E-03    17.339        .54978E-05** at limit **
  21  Normalizat    1.2693        .19348        .16838E-05    .86675E-04
  22  Prefactor     .96260        .13832        .31247E-05   -.52212E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.23014
  norm       = 2.143
  Prefactor  = 6.36286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.97019
  Prefactor  = 1.73588
  norm       = 0.0001
  Prefactor  = 16.542
  Prefactor  = 0.0001
  norm       = 4.8496
  Prefactor  = 17.8546
  Prefactor  = 3.80156
  Prefactor  = 5.00672
  Prefactor  = 2.30284
  Prefactor  = 0.0001
  Normalizat = 1.2693
  Prefactor  = 0.962605
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.829     FROM HESSE     STATUS=OK           346 CALLS     2708 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6214        .20244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.2301        3.4367        .95244E-04   -1.5134    
   5  norm          2.1430        2.9715        .16388E-03   -1.5415    
   6  Prefactor     6.3629        22.736        .15909E-03   -1.5203    
   7  Prefactor     .10000E-03    17.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9702        21.534        .17989E-03   -1.5262    
  11  Prefactor     1.7359        12.918        .31856E-03   -1.5444    
  12  norm          .10000E-03    13.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.542        37.127        .98416E-04   -1.4894    
  14  Prefactor     .10000E-03    3.7601        .15621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8496        1.5029        .52019E-04   -1.5267    
  16  Prefactor     17.855        33.670        .94795E-04   -1.4863    
  17  Prefactor     3.8016        6.2644        .20702E-03   -1.5318    
  18  Prefactor     5.0067        23.495        .17971E-03   -1.5260    
  19  Prefactor     2.3028        1.9482        .10263E-03   -1.5404    
  20  Prefactor     .10000E-03    17.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2693        .22802        .27048E-03   -.84488    
  22  Prefactor     .96260        .16274        .21955E-03   -.93987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07705e-10
Minuit parameter uncertainties:
  1  3.17829e-05
  2  1.31656e-05
  3  7.51505e-05
  4  3.43674
  5  2.97171
  6  22.767
  7  1.24779e-05
  8  6.35606e-05
  9  0.000142381
  10  20.7031
  11  9.47347
  12  4.09148e-06
  13  37.1785
  14  9.55926e-06
  15  1.50291
  16  33.7058
  17  6.26543
  18  21.7054
  19  1.94822
  20  3.68421e-05
  21  0.228199
  22  0.162825
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.736e+00  9.473e+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:  9.626e-01  1.628e-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.269e+00  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937910/likelihoodResults_588211201_588470401_4FGL_J1501.0+2238_daily_bin1346.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) = 6845.50246751
delta logL = 0.326826929137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6845.31143495
delta logL = 0.517859485143

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 'Index     '    6.7137       1.0000          .0000       10.000    
     3 'Normalizat'    1.2137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98837       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=   6845.311     FROM MIGRAD    STATUS=CONVERGED    266 CALLS      598 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .30667E-02    .38604E-03** at limit **
   2  Index         6.7134        2.3567        .99801E-01    .20073E-03
   3  Normalizat    1.2138        .43947E-01    .62310E-01    .11694E-03
   4  Prefactor     .98827        .31283E-01    .46122E-01    .16776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.7134
  Normalizat = 1.21377
  Prefactor  = 0.988266
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.311     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      637 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .26540E-01    .18260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.7134        7.5160        .52856E-02   -37.349    
   3  Normalizat    1.2138        .99931E-01    .27561E-03   -2.2798    
   4  Prefactor     .98827        .71548E-01    .21696E-03   -2.2104    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.92115e-07
Minuit parameter uncertainties:
  1  3.94675e-07
  2  5.05217
  3  0.0999464
  4  0.071555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937910': 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) = 6845.31142432
delta logL = 0.517870121966

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  3.947e-07  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  6.713e+00  5.052e+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:  9.883e-01  7.156e-02  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.214e+00  9.995e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 225.257 22.636
Photon Index (Free Index): 6.71 +/- 5.05
Photon Flux (Free Index): 4.72e-08 +/- 6.39e-07
Energy Flux (Free Index): 5.70e-06 +/- 7.64e-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/937910/cmap_HighResolution_588211201_588470401_4FGL_J1501.0+2238_daily_bin1346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', comment='SUCCESS', energy_flux2='5.70e-06', dlogl='5.18e-01', photon_flux2='4.72e-08', job_status='DONE', time_completed='2021-09-10 18:05:18.044927', photon_index_error2='5.05', photon_index2='6.71', ts='0.04', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.11e-08', energy_flux_error2='7.64e-05', EG='1.27', time_epoch_completed='1631322318.04', return_code='0', job_id='937910', GAL2='0.99', EG2='1.21', return_code2='102', photon_flux_error2='6.39e-07', ts2='1.16', photon_index='2.00' WHERE bin_id='1346' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:05:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 937910: <4FGL_J1501.0+2238_daily_bin1346> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1346 225.257 22.6364 588211201 588470401 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 :                                   653.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

