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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin16
RA = 225.257, Dec = 22.6364
tmin = 243475201, tmax = 243734401
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='931807', job_status='RUN', time_executed='2021-09-10 17:34:04.307673', time_epoch_executed='1631320444.31' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931807/ft1_4FGL_J1501.0+2238_daily_bin16.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931807/ft2_4FGL_J1501.0+2238_daily_bin16.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931807/ft1_4FGL_J1501.0+2238_daily_bin16.fits outfile=/scratch/kocevski/931807/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin16.fits ra=225.257 dec=22.6364 rad=12.0 tmin=243475201.0 tmax=243734401.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 1.40
user 1.22
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931807/ft2_4FGL_J1501.0+2238_daily_bin16.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/931807/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin16.fits evtable="EVENTS" outfile="/scratch/kocevski/931807/ft1_filtered_4FGL_J1501.0+2238_daily_bin16.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931807/ft1_filtered_4FGL_J1501.0+2238_daily_bin16.fits" evtable="EVENTS" scfile=/scratch/kocevski/931807/ft2_4FGL_J1501.0+2238_daily_bin16.fits sctable="SC_DATA" outfile=/scratch/kocevski/931807/ltcube_243475201_243734401_4FGL_J1501.0+2238_daily_bin16.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/931807/ft2_4FGL_J1501.0+2238_daily_bin16.fits
.....................!
real 13.05
user 12.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931807/ft1_filtered_4FGL_J1501.0+2238_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/931807/ft2_4FGL_J1501.0+2238_daily_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/931807/ltcube_243475201_243734401_4FGL_J1501.0+2238_daily_bin16.fits outfile=/scratch/kocevski/931807/expmap_243475201_243734401_4FGL_J1501.0+2238_daily_bin16.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/931807/ltcube_243475201_243734401_4FGL_J1501.0+2238_daily_bin16.fits
.....................!
real 191.64
user 186.64
sys 4.32

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/931807/ft1_filtered_4FGL_J1501.0+2238_daily_bin16.fits scfile=/scratch/kocevski/931807/ft2_4FGL_J1501.0+2238_daily_bin16.fits outfile=/scratch/kocevski/931807/cmap_243475201_243734401_4FGL_J1501.0+2238_daily_bin16.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931807/ft1_filtered_4FGL_J1501.0+2238_daily_bin16.fits scfile=/scratch/kocevski/931807/ft2_4FGL_J1501.0+2238_daily_bin16.fits outfile=/scratch/kocevski/931807/cmap_HighResolution_243475201_243734401_4FGL_J1501.0+2238_daily_bin16.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    8.5313       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12526E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .68608       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15172E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10865E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46731E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    124.46       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2681       1.0000         .10000E-03   10000.    
    15 'norm      '    10.767       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14220E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.420       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2887       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76845       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=   7193.957     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2408 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0319        .86473E-07** at limit **
   2  norm          8.5315        2.8250       -.21892E-07   -.86984E-04
   3  Prefactor     .10155E-03    3.6890        .85796E-06** at limit **
   4  norm          .10000E-03    1.3820        .74139E-07** at limit **
   5  norm          .68596        2.3775        .17181E-05    .40625E-03
   6  Prefactor     .10000E-03    24.933        .11259E-06** at limit **
   7  Prefactor     .10000E-03    24.334        .56460E-07** at limit **
   8  Prefactor     .10000E-03    38.685        .40550E-06** at limit **
   9  Prefactor     29.857        29.463        .46111E-06   -.68485E-05
  10  Prefactor     .10000E-03    38.678       -.31717E-07** at limit **
  11  Prefactor     .10001E-03    6.4452       -.13658E-05** at limit **
  12  norm          .10000E-03    14.245       -.57735E-08** at limit **
  13  Prefactor     124.45        52.091       -.75930E-07   -.78561E-05
  14  Prefactor     3.2684        4.7073        .23253E-06    .70095E-04
  15  norm          10.768        2.0753        .44852E-07    .45629E-03
  16  Prefactor     .10000E-03    34.916       -.19382E-06** at limit **
  17  Prefactor     .10000E-03    10.953       -.21309E-05** at limit **
  18  Prefactor     31.369        42.307       -.19859E-06   -.64496E-04
  19  Prefactor     .10000E-03    1.4239       -.33843E-06** at limit **
  20  Prefactor     .10000E-03    6.6626        .16575E-07** at limit **
  21  Normalizat    1.2886        .18987        .11488E-06   -.85343E-04
  22  Prefactor     .76854        .12946       -.52884E-06   -.20616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.53146
  Prefactor  = 0.000101546
  norm       = 0.0001
  norm       = 0.685958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8572
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 124.452
  Prefactor  = 3.26841
  norm       = 10.7675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.3692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28859
  Prefactor  = 0.768543
 **********
 **   18 **HESSE 
 **********

 FCN=   7193.957     FROM HESSE     STATUS=OK           344 CALLS     2752 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.5315        2.8268        .79797E-04   -1.5124    
   3  Prefactor     .10155E-03    6.7701        .47588E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4192        .19461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .68596        2.4094        .24309E-03   -1.5542    
   6  Prefactor     .10000E-03    25.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.857        29.415        .73318E-04   -1.4615    
  10  Prefactor     .10000E-03    38.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    16.256        .37360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     124.45        52.140        .36080E-04   -1.3472    
  14  Prefactor     3.2684        4.6975        .21468E-03   -1.5346    
  15  norm          10.768        2.0853        .50741E-04   -1.5052    
  16  Prefactor     .10000E-03    35.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.369        42.283        .71482E-04   -1.4587    
  19  Prefactor     .10000E-03    1.4537        .19719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.6648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2886        .22433        .26557E-03   -.83907    
  22  Prefactor     .76854        .15121        .23163E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78515e-09
Minuit parameter uncertainties:
  1  6.09593e-06
  2  2.82688
  3  0.00647196
  4  8.79278e-07
  5  2.40972
  6  5.53004e-06
  7  1.34929e-05
  8  8.34043e-05
  9  29.4293
  10  1.64682e-05
  11  0.000918923
  12  2.23653e-06
  13  52.1592
  14  4.69801
  15  2.08527
  16  0.00010277
  17  0.000115963
  18  42.3236
  19  4.87035e-06
  20  2.19269e-06
  21  0.224498
  22  0.151293
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  9.189e-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:  7.685e-01  1.513e-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.289e+00  2.245e-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: 6.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931807/likelihoodResults_243475201_243734401_4FGL_J1501.0+2238_daily_bin16.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) = 7193.95701018
delta logL = -0.000291063918667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7193.95671943
delta logL = -3.08030394081e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10769E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0515       1.0000          .0000       10.000    
     3 'Normalizat'    1.2888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76843       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=   7193.957     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      226 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .80446E-01    .90712E-01** at limit **
   2  Index         2.1022        5.0849        .50000       -.19914E-04
   3  Normalizat    1.2886        .72472E-03    .60048E-01   -.76702E-03
   4  Prefactor     .76854        .50449E-03    .43305E-01   -.87406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10217
  Normalizat = 1.28859
  Prefactor  = 0.768541
 **********
 **   18 **HESSE 
 **********

 FCN=   7193.957     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      257 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.442        .31002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1022        7.3079        .50000       -.61819    
   3  Normalizat    1.2886        .60100E-02    .26557E-03   -.83907    
   4  Prefactor     .76854        .41847E-02    .23163E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.50598e-08
Minuit parameter uncertainties:
  1  3.34468e-05
  2  62.9143
  3  0.00601001
  4  0.00418468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931807': 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) = 7193.95671855
delta logL = 5.65628397453e-07

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  3.345e-05  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.102e+00  6.291e+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:  7.685e-01  4.185e-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:  1.289e+00  6.010e-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/931807/cmap_HighResolution_243475201_243734401_4FGL_J1501.0+2238_daily_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.37e-08', time_completed='2021-09-10 17:44:51.804630', job_id='931807', GAL2='0.77', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631321091.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='5.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='16' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:44:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 931807: <4FGL_J1501.0+2238_daily_bin16> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin16> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 17:31:13 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:31:15 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:31:15 2021
Terminated at Fri Sep 10 17:44:52 2021
Results reported at Fri Sep 10 17:44:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin16 225.257 22.6364 243475201 243734401 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 :                                   646.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            819 sec.

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

