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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1091
RA = 225.257, Dec = 22.6364
tmin = 522115201, tmax = 522374401
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='936627', job_status='RUN', time_executed='2021-09-10 17:50:17.942210', time_epoch_executed='1631321417.94' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936627

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936627/ft1_4FGL_J1501.0+2238_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936627/ft2_4FGL_J1501.0+2238_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936627/ft1_4FGL_J1501.0+2238_daily_bin1091.fits outfile=/scratch/kocevski/936627/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1091.fits ra=225.257 dec=22.6364 rad=12.0 tmin=522115201.0 tmax=522374401.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.75
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936627/ft1_filtered_4FGL_J1501.0+2238_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/936627/ft2_4FGL_J1501.0+2238_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/936627/ltcube_522115201_522374401_4FGL_J1501.0+2238_daily_bin1091.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/936627/ft2_4FGL_J1501.0+2238_daily_bin1091.fits
.....................!
real 12.07
user 11.64
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936627/ft1_filtered_4FGL_J1501.0+2238_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/936627/ft2_4FGL_J1501.0+2238_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/936627/ltcube_522115201_522374401_4FGL_J1501.0+2238_daily_bin1091.fits outfile=/scratch/kocevski/936627/expmap_522115201_522374401_4FGL_J1501.0+2238_daily_bin1091.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/936627/ltcube_522115201_522374401_4FGL_J1501.0+2238_daily_bin1091.fits
.....................!
real 190.29
user 185.42
sys 4.48

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

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936627/ft1_filtered_4FGL_J1501.0+2238_daily_bin1091.fits scfile=/scratch/kocevski/936627/ft2_4FGL_J1501.0+2238_daily_bin1091.fits outfile=/scratch/kocevski/936627/cmap_HighResolution_522115201_522374401_4FGL_J1501.0+2238_daily_bin1091.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=225.257 yref=22.6364 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9110       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.0589       1.0000         .10000E-03   10000.    
     5 'norm      '    8.7251       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.960       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.587       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .83014       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1417       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0709       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=   8077.203     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2294 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5272        .13445E-05** at limit **
   2  norm          1.9110        1.8235        .54323E-07    .24676E-03
   3  Prefactor     .10000E-03    11.486       -.42106E-05** at limit **
   4  norm          5.0594        3.9132       -.23562E-06   -.26697E-03
   5  norm          8.7252        5.7861       -.10205E-06   -.75216E-04
   6  Prefactor     .10000E-03    26.147       -.55181E-05** at limit **
   7  Prefactor     16.959        24.725       -.45581E-06    .27030E-04
   8  Prefactor     .10000E-03    11.167       -.49168E-05** at limit **
   9  Prefactor     .10000E-03    9.0185        .41669E-05** at limit **
  10  Prefactor     .10000E-03    11.282       -.49216E-05** at limit **
  11  Prefactor     .10000E-03    3.0777       -.63020E-07** at limit **
  12  norm          .10000E-03    15.388        .12129E-04** at limit **
  13  Prefactor     .10000E-03    13.922        .51166E-05** at limit **
  14  Prefactor     .10000E-03    5.2879       -.21479E-05** at limit **
  15  norm          15.588        2.4899       -.11963E-07    .47302E-03
  16  Prefactor     .10000E-03    9.0137        .42224E-05** at limit **
  17  Prefactor     .10000E-03    3.8274       -.38184E-06** at limit **
  18  Prefactor     .10000E-03    11.303       -.48978E-05** at limit **
  19  Prefactor     .83008        2.6810       -.17466E-05   -.15402E-02
  20  Prefactor     .10000E-03    12.452       -.21329E-05** at limit **
  21  Normalizat    1.1416        .20627        .72412E-06    .17648E-03
  22  Prefactor     1.0709        .13785        .11906E-06    .25371E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.91101
  Prefactor  = 0.000100001
  norm       = 5.05935
  norm       = 8.72516
  Prefactor  = 0.0001
  Prefactor  = 16.9589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.830078
  Prefactor  = 0.0001
  Normalizat = 1.14162
  Prefactor  = 1.07093
 **********
 **   18 **HESSE 
 **********

 FCN=   8077.203     FROM HESSE     STATUS=OK           332 CALLS     2626 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9110        1.8376        .11523E-03   -1.5431    
   3  Prefactor     .10000E-03    11.753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0594        3.9146        .14745E-03   -1.5258    
   5  norm          8.7252        5.7907        .13570E-03   -1.5117    
   6  Prefactor     .10000E-03    26.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.959        24.729        .97255E-04   -1.4884    
   8  Prefactor     .10000E-03    11.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.9747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0914        .15397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.588        2.4943        .54093E-04   -1.4918    
  16  Prefactor     .10000E-03    8.9653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8300        .17162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .83008        2.8577        .26563E-03   -1.5526    
  20  Prefactor     .10000E-03    12.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1416        .24211        .31912E-03   -.88427    
  22  Prefactor     1.0709        .16179        .22382E-03   -.90401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0715e-09
Minuit parameter uncertainties:
  1  2.16186e-05
  2  1.83765
  3  0.000153415
  4  3.91481
  5  5.79107
  6  0.000226102
  7  24.7439
  8  0.000138737
  9  0.000102379
  10  0.000135201
  11  1.95254e-07
  12  0.000388349
  13  0.000162032
  14  4.55135e-05
  15  2.49427
  16  0.000108058
  17  9.77827e-06
  18  0.000142514
  19  2.85816
  20  5.8621e-05
  21  0.242348
  22  0.161864
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  1.953e-07  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.071e+00  1.619e-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.142e+00  2.423e-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: 4.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936627/likelihoodResults_522115201_522374401_4FGL_J1501.0+2238_daily_bin1091.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) = 8077.20413969
delta logL = -0.00153422764834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8077.20260544
delta logL = 2.02826413442e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9924       1.0000          .0000       10.000    
     3 'Normalizat'    1.1416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0709       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=   8077.203     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      240 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10068E-03    78.416        .15449E-02** at limit **
   2  Index         1.9324        5.0371        .50000        .16877E-04
   3  Normalizat    1.1416        .26299E-01    .31912E-03   -.51301E-05
   4  Prefactor     1.0709        .18038E-01    .22382E-03   -.41650E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100684
  Index      = 1.93243
  Normalizat = 1.14162
  Prefactor  = 1.07093
 **********
 **   18 **HESSE 
 **********

 FCN=   8077.203     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10068E-03    322.53        .30898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9324        6.3599        .50000       -.66050    
   3  Normalizat    1.1416        .60227E-01    .12765E-04   -.88427    
   4  Prefactor     1.0709        .41231E-01    .89529E-05   -.90401    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.50562e-08
Minuit parameter uncertainties:
  1  0.0298735
  2  1125.91
  3  0.0602302
  4  0.0412322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936627': 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) = 8077.20260522
delta logL = 2.49396180152e-07

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.007e-04  2.987e-02  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.932e+00  1.126e+03  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.071e+00  4.123e-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.142e+00  6.023e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.257 22.636

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-03', job_status='DONE', photon_flux_upper_limit='4.55e-08', time_completed='2021-09-10 18:03:17.947367', job_id='936627', GAL2='1.07', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631322197.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1091' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:03:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 936627: <4FGL_J1501.0+2238_daily_bin1091> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1091> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep 10 17:46:55 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:46:57 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:46:57 2021
Terminated at Fri Sep 10 18:03:18 2021
Results reported at Fri Sep 10 18:03:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1091 225.257 22.6364 522115201 522374401 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 :                                   668.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

