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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1046
RA = 225.257, Dec = 22.6364
tmin = 510451201, tmax = 510710401
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='936560', job_status='RUN', time_executed='2021-09-10 17:49:17.639556', time_epoch_executed='1631321357.64' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936560

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936560/ft1_4FGL_J1501.0+2238_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936560/ft2_4FGL_J1501.0+2238_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936560/ft1_4FGL_J1501.0+2238_daily_bin1046.fits outfile=/scratch/kocevski/936560/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1046.fits ra=225.257 dec=22.6364 rad=12.0 tmin=510451201.0 tmax=510710401.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.93
user 3.69
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936560/ft1_filtered_4FGL_J1501.0+2238_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/936560/ft2_4FGL_J1501.0+2238_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/936560/ltcube_510451201_510710401_4FGL_J1501.0+2238_daily_bin1046.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/936560/ft2_4FGL_J1501.0+2238_daily_bin1046.fits
.....................!
real 11.93
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936560/ft1_filtered_4FGL_J1501.0+2238_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/936560/ft2_4FGL_J1501.0+2238_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/936560/ltcube_510451201_510710401_4FGL_J1501.0+2238_daily_bin1046.fits outfile=/scratch/kocevski/936560/expmap_510451201_510710401_4FGL_J1501.0+2238_daily_bin1046.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/936560/ltcube_510451201_510710401_4FGL_J1501.0+2238_daily_bin1046.fits
.....................!
real 191.17
user 185.77
sys 5.04

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/936560/ft1_filtered_4FGL_J1501.0+2238_daily_bin1046.fits scfile=/scratch/kocevski/936560/ft2_4FGL_J1501.0+2238_daily_bin1046.fits outfile=/scratch/kocevski/936560/cmap_510451201_510710401_4FGL_J1501.0+2238_daily_bin1046.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936560/ft1_filtered_4FGL_J1501.0+2238_daily_bin1046.fits scfile=/scratch/kocevski/936560/ft2_4FGL_J1501.0+2238_daily_bin1046.fits outfile=/scratch/kocevski/936560/cmap_HighResolution_510451201_510710401_4FGL_J1501.0+2238_daily_bin1046.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.4789       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9001       1.0000         .10000E-03   10000.    
     4 'norm      '    6.9751       1.0000         .10000E-03   10000.    
     5 'norm      '    8.0543       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.425       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3253       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.345       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6654       1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.577       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .85405E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.250       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .46240       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98351       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0863       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=   7515.637     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2364 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6100        .13312E-07** at limit **
   2  norm          5.4790        2.5681        .48517E-07    .15181E-04
   3  Prefactor     8.9000        6.8422        .25092E-06   -.47939E-04
   4  norm          6.9749        3.3601        .11098E-06   -.74307E-04
   5  norm          8.0546        4.8229        .11153E-06   -.49990E-04
   6  Prefactor     .10000E-03    24.525       -.67597E-07** at limit **
   7  Prefactor     .10000E-03    22.372        .21066E-05** at limit **
   8  Prefactor     16.424        19.010        .27653E-06   -.17240E-04
   9  Prefactor     16.183        21.511       -.64210E-06   -.41687E-04
  10  Prefactor     .10000E-03    25.565       -.18831E-05** at limit **
  11  Prefactor     2.3251        5.4110        .37748E-06   -.11464E-03
  12  norm          .10000E-03    18.996       -.83681E-06** at limit **
  13  Prefactor     21.333        40.893       -.25068E-05   -.38489E-04
  14  Prefactor     .10000E-03    2.2502        .13576E-07** at limit **
  15  norm          3.6676        1.4090       -.84518E-06   -.40455E-02
  16  Prefactor     58.576        35.754        .10113E-06   -.17829E-04
  17  Prefactor     .10016E-03    6.5236        .39053E-05** at limit **
  18  Prefactor     20.281        43.326        .17274E-05   -.15173E-03
  19  Prefactor     .46170        2.0825        .11958E-05   -.78871E-03
  20  Prefactor     .10000E-03    24.065        .53259E-06** at limit **
  21  Normalizat    .98344        .19356       -.11833E-05   -.39846E-03
  22  Prefactor     1.0864        .13790       -.74197E-07   -.38432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.47898
  Prefactor  = 8.89998
  norm       = 6.97491
  norm       = 8.05457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4235
  Prefactor  = 16.1835
  Prefactor  = 0.0001
  Prefactor  = 2.32514
  norm       = 0.0001
  Prefactor  = 21.3335
  Prefactor  = 0.0001
  norm       = 3.66758
  Prefactor  = 58.5757
  Prefactor  = 0.000100161
  Prefactor  = 20.2805
  Prefactor  = 0.461704
  Prefactor  = 0.0001
  Normalizat = 0.983444
  Prefactor  = 1.08635
 **********
 **   18 **HESSE 
 **********

 FCN=   7515.637     FROM HESSE     STATUS=OK           344 CALLS     2708 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6235        .16082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4790        2.5691        .92238E-04   -1.5240    
   3  Prefactor     8.9000        6.8405        .13435E-03   -1.5111    
   4  norm          6.9749        3.3576        .10535E-03   -1.5180    
   5  norm          8.0546        4.8235        .14127E-03   -1.5140    
   6  Prefactor     .10000E-03    24.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.424        18.998        .98824E-04   -1.4897    
   9  Prefactor     16.183        21.505        .99542E-04   -1.4903    
  10  Prefactor     .10000E-03    25.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3251        5.3861        .26896E-03   -1.5403    
  12  norm          .10000E-03    19.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.333        40.972        .86696E-04   -1.4784    
  14  Prefactor     .10000E-03    2.2555        .12700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6676        1.4436        .60774E-04   -1.5325    
  16  Prefactor     58.576        35.770        .52419E-04   -1.4176    
  17  Prefactor     .10016E-03    27.510        .35949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.281        43.429        .89006E-04   -1.4807    
  19  Prefactor     .46170        2.1000        .23563E-03   -1.5572    
  20  Prefactor     .10000E-03    24.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98344        .22288        .30409E-03   -.93587    
  22  Prefactor     1.0864        .15882        .21323E-03   -.89904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85792e-09
Minuit parameter uncertainties:
  1  5.34416e-07
  2  2.56919
  3  6.84106
  4  3.35769
  5  4.82377
  6  2.24605e-05
  7  0.000106285
  8  19.0053
  9  21.515
  10  2.74494e-05
  11  5.38722
  12  2.22427e-05
  13  41.0264
  14  1.27218e-06
  15  1.44359
  16  35.7833
  17  0.00421024
  18  43.4964
  19  1.96923
  20  4.59323e-05
  21  0.223094
  22  0.158884
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.325e+00  5.387e+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:  1.086e+00  1.589e-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:  9.834e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/936560/likelihoodResults_510451201_510710401_4FGL_J1501.0+2238_daily_bin1046.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): 0
logL (Free Index) = 7515.61138764
delta logL = 0.0258321748915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7515.61023796
delta logL = 0.0269818538636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5834       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6661       1.0000          .0000       10.000    
     3 'Normalizat'    .98666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0854       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7515.610     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      267 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5813        5.6303        .12695E-02    .33725E-03
   2  Index         1.6619        1.2660        .74708E-02    .14221E-04
   3  Normalizat    .98667        .21252        .30364E-03    .51632E-04
   4  Prefactor     1.0854        .15688        .21330E-03    .61719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.58134
  Index      = 1.66188
  Normalizat = 0.986666
  Prefactor  = 1.08538
 **********
 **   18 **HESSE 
 **********

 FCN=   7515.610     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5813        5.6405        .25390E-03   -1.5387    
   2  Index         1.6619        1.2684        .29883E-03   -.73101    
   3  Normalizat    .98667        .21269        .12146E-04   -.93478    
   4  Prefactor     1.0854        .15702        .85322E-05   -.89935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87459e-11
Minuit parameter uncertainties:
  1  5.64169
  2  1.29433
  3  0.212871
  4  0.157089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936560': 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): 0
logL (Free Index) = 7515.61023271
delta logL = 0.0269871112114

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.581e+00  5.642e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.662e+00  1.294e+00  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.085e+00  1.571e-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:  9.867e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/936560/cmap_HighResolution_510451201_510710401_4FGL_J1501.0+2238_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2021-09-10 18:01:30.833712', job_id='936560', GAL2='1.09', fit_tolerance='1e-08', EG2='0.99', EG='0.98', time_epoch_completed='1631322090.83', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.70e-02', ts2='0.31', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1046' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:01:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 936560: <4FGL_J1501.0+2238_daily_bin1046> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1046 225.257 22.6364 510451201 510710401 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.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            881 sec.

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

