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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1137
RA = 225.257, Dec = 22.6364
tmin = 534038401, tmax = 534297601
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='937604', job_status='RUN', time_executed='2021-09-10 17:55:09.306080', time_epoch_executed='1631321709.31' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937604/ft1_4FGL_J1501.0+2238_daily_bin1137.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937604/ft2_4FGL_J1501.0+2238_daily_bin1137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937604/ft1_4FGL_J1501.0+2238_daily_bin1137.fits outfile=/scratch/kocevski/937604/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1137.fits ra=225.257 dec=22.6364 rad=12.0 tmin=534038401.0 tmax=534297601.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.57
user 3.36
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937604/ft1_filtered_4FGL_J1501.0+2238_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/937604/ft2_4FGL_J1501.0+2238_daily_bin1137.fits sctable="SC_DATA" expcube=/scratch/kocevski/937604/ltcube_534038401_534297601_4FGL_J1501.0+2238_daily_bin1137.fits outfile=/scratch/kocevski/937604/expmap_534038401_534297601_4FGL_J1501.0+2238_daily_bin1137.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/937604/ltcube_534038401_534297601_4FGL_J1501.0+2238_daily_bin1137.fits
.....................!
real 190.33
user 185.50
sys 4.45

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/937604/ft1_filtered_4FGL_J1501.0+2238_daily_bin1137.fits scfile=/scratch/kocevski/937604/ft2_4FGL_J1501.0+2238_daily_bin1137.fits outfile=/scratch/kocevski/937604/cmap_534038401_534297601_4FGL_J1501.0+2238_daily_bin1137.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/937604/ft1_filtered_4FGL_J1501.0+2238_daily_bin1137.fits scfile=/scratch/kocevski/937604/ft2_4FGL_J1501.0+2238_daily_bin1137.fits outfile=/scratch/kocevski/937604/cmap_HighResolution_534038401_534297601_4FGL_J1501.0+2238_daily_bin1137.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.864       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.7151       1.0000         .10000E-03   10000.    
     5 'norm      '    .15198E-03   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 '    21.703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2354       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-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      '    4.5275       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.926       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .62487       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3407       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6897.859     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     1678 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6.0772        .77812E-05** at limit **
   2  norm          10.864        3.6862        .32201E-06    .10921E-03
   3  Prefactor     .10000E-03    1.8974       -.13855E-06** at limit **
   4  norm          7.7150        3.4207       -.16701E-05   -.41484E-03
   5  norm          .10008E-03    10.119        .11160E-05** at limit **
   6  Prefactor     .10004E-03    5.6841        .21477E-05** at limit **
   7  Prefactor     .10000E-03    5.8398       -.28550E-05** at limit **
   8  Prefactor     21.702        1.1057       -.25866E-06    .43109E-03
   9  Prefactor     6.2369        1.0455        .32021E-06   -.20642E-03
  10  Prefactor     .10004E-03    11.418       -.92997E-05** at limit **
  11  Prefactor     .10002E-03    6.1754       -.87076E-05** at limit **
  12  norm          .10022E-03    26.635       -.16276E-04** at limit **
  13  Prefactor     .10004E-03    5.3046       -.25918E-06** at limit **
  14  Prefactor     .10000E-03    1.6929       -.44291E-06** at limit **
  15  norm          4.5283        1.4188       -.44264E-07   -.13270E-03
  16  Prefactor     16.925        1.0327       -.15602E-06    .20529E-03
  17  Prefactor     .10000E-03    5.7089        .70834E-05** at limit **
  18  Prefactor     .10000E-03    25.698        .17585E-04** at limit **
  19  Prefactor     .10000E-03    1.9137       -.15681E-06** at limit **
  20  Prefactor     .10005E-03    11.668       -.20362E-05** at limit **
  21  Normalizat    .62488        .22176        .32159E-06   -.14366E-04
  22  Prefactor     1.3407        .16625        .69532E-07   -.11584E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 10.8639
  Prefactor  = 0.0001
  norm       = 7.715
  norm       = 0.00010008
  Prefactor  = 0.000100038
  Prefactor  = 0.000100001
  Prefactor  = 21.7015
  Prefactor  = 6.23686
  Prefactor  = 0.000100043
  Prefactor  = 0.000100019
  norm       = 0.000100217
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  norm       = 4.52834
  Prefactor  = 16.9248
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100046
  Normalizat = 0.624877
  Prefactor  = 1.34071
 **********
 **   18 **HESSE 
 **********

 FCN=   6897.859     FROM HESSE     STATUS=OK           390 CALLS     2068 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.3066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.864        3.6895        .30388E-02   -1.5049    
   3  Prefactor     .10000E-03    1.8898        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.7150        3.4255        .36092E-02   -1.5152    
   5  norm          .10008E-03    3.0485        .44693E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    9.1124        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.702        18.306        .21494E-02   -1.4776    
   9  Prefactor     6.2369        21.929        .40190E-02   -1.5208    
  10  Prefactor     .10004E-03    14.908        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    7.2410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10022E-03    45.278        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    12.476        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6917        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5283        1.4231        .47301E-02   -1.5282    
  16  Prefactor     16.925        18.686        .24338E-02   -1.4885    
  17  Prefactor     .10000E-03    10.710        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.8348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10005E-03    39.932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .62488        .20054        .81264E-01   -1.0694    
  22  Prefactor     1.3407        .14968        .31936E-01   -.82104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11988e-08
Minuit parameter uncertainties:
  1  0.000364099
  2  3.68956
  3  9.99305e-07
  4  3.42562
  5  0.000986217
  6  0.00118398
  7  0.000123244
  8  18.3109
  9  21.9577
  10  0.00159299
  11  0.000751509
  12  0.00627561
  13  0.00147362
  14  2.86249e-06
  15  1.42308
  16  18.6921
  17  0.000418683
  18  0.000212878
  19  6.69121e-07
  20  0.00272469
  21  0.200773
  22  0.149729
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  7.515e-04  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.341e+00  1.497e-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.249e-01  2.008e-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: 5.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937604/likelihoodResults_534038401_534297601_4FGL_J1501.0+2238_daily_bin1137.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) = 6897.85981927
delta logL = -0.000640626530185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6897.85917713
delta logL = 1.51498443302e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10669E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9136       1.0000          .0000       10.000    
     3 'Normalizat'    .62499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3406       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=   6897.859     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      272 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22669E-03    1.3853        .67608E-01** at limit **
   2  Index         1.4672        5.6053        .50000        .80021E-05
   3  Normalizat    .62488        .20849E-02    .35988E-03    .11862E-03
   4  Prefactor     1.3407        .15849E-02    .19227E-03    .78761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000226689
  Index      = 1.46716
  Normalizat = 0.624879
  Prefactor  = 1.34071
 **********
 **   18 **HESSE 
 **********

 FCN=   6897.859     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      311 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22669E-03    1.2046        .72449E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4672        5.3955        .50000       -.78464    
   3  Normalizat    .62488        .20217E-02    .14395E-04   -1.0694    
   4  Prefactor     1.3407        .15369E-02    .76906E-05   -.82104    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.04424e-10
Minuit parameter uncertainties:
  1  0.0247079
  2  23.1514
  3  0.00202172
  4  0.00153688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937604': 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) = 6897.8591722
delta logL = 6.4419264163e-06

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.267e-04  2.471e-02  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.467e+00  2.315e+01  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.341e+00  1.537e-03  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.249e-01  2.022e-03  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/937604/cmap_HighResolution_534038401_534297601_4FGL_J1501.0+2238_daily_bin1137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-09-10 18:05:01.054069', job_id='937604', GAL2='1.34', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1631322301.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='6.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1137' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:05:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 937604: <4FGL_J1501.0+2238_daily_bin1137> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1137 225.257 22.6364 534038401 534297601 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 :                                   583.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

