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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin946
RA = 225.257, Dec = 22.6364
tmin = 484531201, tmax = 484790401
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='936405', job_status='RUN', time_executed='2021-09-10 17:46:49.894736', time_epoch_executed='1631321209.89' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936405

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936405/ft1_4FGL_J1501.0+2238_daily_bin946.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936405/ft2_4FGL_J1501.0+2238_daily_bin946.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936405/ft1_4FGL_J1501.0+2238_daily_bin946.fits outfile=/scratch/kocevski/936405/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin946.fits ra=225.257 dec=22.6364 rad=12.0 tmin=484531201.0 tmax=484790401.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 7.10
user 6.79
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936405/ft1_filtered_4FGL_J1501.0+2238_daily_bin946.fits" evtable="EVENTS" scfile=/scratch/kocevski/936405/ft2_4FGL_J1501.0+2238_daily_bin946.fits sctable="SC_DATA" outfile=/scratch/kocevski/936405/ltcube_484531201_484790401_4FGL_J1501.0+2238_daily_bin946.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/936405/ft2_4FGL_J1501.0+2238_daily_bin946.fits
.....................!
real 11.98
user 11.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936405/ft1_filtered_4FGL_J1501.0+2238_daily_bin946.fits evtable="EVENTS" scfile=/scratch/kocevski/936405/ft2_4FGL_J1501.0+2238_daily_bin946.fits sctable="SC_DATA" expcube=/scratch/kocevski/936405/ltcube_484531201_484790401_4FGL_J1501.0+2238_daily_bin946.fits outfile=/scratch/kocevski/936405/expmap_484531201_484790401_4FGL_J1501.0+2238_daily_bin946.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/936405/ltcube_484531201_484790401_4FGL_J1501.0+2238_daily_bin946.fits
.....................!
real 191.69
user 185.76
sys 5.47

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.7385       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9120       1.0000         .10000E-03   10000.    
     5 'norm      '    8.0795       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2496       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8832       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.800       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.727       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.534       1.0000         .10000E-03   10000.    
    12 'norm      '    .10909E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3256       1.0000         .10000E-03   10000.    
    15 'norm      '    .24170E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.957       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8817       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.688       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.222       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1249       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90544       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=   6559.350     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2438 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3535        .85620E-08** at limit **
   2  norm          4.7385        2.8812        .54497E-08   -.20533E-04
   3  Prefactor     .10000E-03    3.0459        .10508E-07** at limit **
   4  norm          4.9104        3.2337        .10424E-07   -.15725E-04
   5  norm          8.0766        5.5747        .13370E-05   -.16744E-03
   6  Prefactor     7.2511        23.966        .25859E-06    .31667E-05
   7  Prefactor     1.9662        150.52        .46839E-06   -.68060E-05
   8  Prefactor     .10000E-03    7.8034        .11362E-06** at limit **
   9  Prefactor     10.665        53.825        .31073E-06   -.35013E-05
  10  Prefactor     23.757        49.583        .56295E-06    .76341E-04
  11  Prefactor     24.539        14.017       -.12564E-06   -.14246E-03
  12  norm          .10000E-03    27.278        .56394E-07** at limit **
  13  Prefactor     .10000E-03    119.64       -.33229E-06** at limit **
  14  Prefactor     7.3238        8.0950        .11153E-06    .24892E-04
  15  norm          .10012E-03    .46780       -.24767E-06** at limit **
  16  Prefactor     40.831        50.925        .17460E-06   -.26182E-04
  17  Prefactor     1.8847        6.9820        .23678E-05    .14181E-03
  18  Prefactor     32.665        29.081       -.49840E-06    .56903E-04
  19  Prefactor     .10000E-03    .63343        .34386E-07** at limit **
  20  Prefactor     14.228        38.872        .56826E-06    .12165E-04
  21  Normalizat    1.1251        .20457       -.30267E-06    .51337E-04
  22  Prefactor     .90532        .14076       -.48091E-06    .54919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.73848
  Prefactor  = 0.0001
  norm       = 4.9104
  norm       = 8.07663
  Prefactor  = 7.25115
  Prefactor  = 1.96625
  Prefactor  = 0.0001
  Prefactor  = 10.6651
  Prefactor  = 23.7573
  Prefactor  = 24.5386
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.32376
  norm       = 0.000100119
  Prefactor  = 40.8315
  Prefactor  = 1.88475
  Prefactor  = 32.665
  Prefactor  = 0.0001
  Prefactor  = 14.2282
  Normalizat = 1.1251
  Prefactor  = 0.905321
 **********
 **   18 **HESSE 
 **********

 FCN=   6559.350     FROM HESSE     STATUS=OK           358 CALLS     2796 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3568        .14485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7385        2.8803        .10359E-03   -1.5273    
   3  Prefactor     .10000E-03    3.0555        .13802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9104        3.2290        .11354E-03   -1.5265    
   5  norm          8.0766        5.4791        .70526E-03   -1.5140    
   6  Prefactor     7.2511        24.065        .14897E-03   -1.5169    
   7  Prefactor     1.9662        136.43        .30332E-03   -1.5428    
   8  Prefactor     .10000E-03    7.8092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.665        48.491        .12191E-03   -1.5055    
  10  Prefactor     23.757        49.342        .82235E-04   -1.4733    
  11  Prefactor     24.539        14.040        .80873E-04   -1.4717    
  12  norm          .10000E-03    27.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    120.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3238        8.0996        .14819E-03   -1.5167    
  15  norm          .10012E-03    1.0384        .17893E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.831        51.033        .62636E-04   -1.4429    
  17  Prefactor     1.8847        7.3219        .30346E-03   -1.5433    
  18  Prefactor     32.665        28.960        .35043E-03   -1.4564    
  19  Prefactor     .10000E-03    .64207        .62932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.228        38.912        .10621E-03   -1.4953    
  21  Normalizat    1.1251        .24106        .28438E-03   -.88950    
  22  Prefactor     .90532        .16574        .22042E-03   -.95955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45276e-10
Minuit parameter uncertainties:
  1  5.95282e-07
  2  2.88036
  3  1.32689e-06
  4  3.22907
  5  5.47942
  6  24.0975
  7  32.8345
  8  2.36356e-07
  9  45.5434
  10  49.4271
  11  14.0418
  12  1.66189e-06
  13  8.06733e-05
  14  8.10085
  15  0.000704242
  16  51.0873
  17  7.32535
  18  28.9728
  19  3.03814e-08
  20  38.9817
  21  0.241294
  22  0.165833
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.053e-01  1.658e-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.125e+00  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.96e-08 +/- 4.55e-08
Energy Flux (Fixed Index): 5.48e-05 +/- 3.14e-05

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) = 6559.16129633
delta logL = 0.18877321534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6559.13569788
delta logL = 0.214371666072

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.655       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4088       1.0000          .0000       10.000    
     3 'Normalizat'    1.0784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92640       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=   6559.136     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      277 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.645        126.84        .25306E-02    .86721E-04
   2  Index         2.4089        2.4022        .12231        .15046E-03
   3  Normalizat    1.0775        .95744E-01    .65459E-01    .25183E-04
   4  Prefactor     .92710        .50062E-01    .45341E-01    .30278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6448
  Index      = 2.40886
  Normalizat = 1.07752
  Prefactor  = 0.927102
 **********
 **   18 **HESSE 
 **********

 FCN=   6559.136     FROM HESSE     STATUS=OK            33 CALLS      310 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.645        29.425        .10123E-03   -1.4917    
   2  Index         2.4089        1.1083        .41949E-02   -.54478    
   3  Normalizat    1.0775        .26368        .28957E-03   -.90477    
   4  Prefactor     .92710        .17778        .21810E-03   -.95200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79809e-11
Minuit parameter uncertainties:
  1  29.4521
  2  1.12114
  3  0.264001
  4  0.177894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936405': 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) = 6559.13568757
delta logL = 0.214381970862

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.271e-01  1.779e-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.078e+00  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 225.257 22.636
Photon Index (Free Index): 2.41 +/- 1.12
Photon Flux (Free Index): 1.17e-07 +/- 9.75e-08
Energy Flux (Free Index): 3.80e-05 +/- 3.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/936405/cmap_HighResolution_484531201_484790401_4FGL_J1501.0+2238_daily_bin946.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.96e-08', energy_flux2='3.80e-05', photon_flux_error='4.55e-08', dlogl='2.14e-01', energy_flux='5.48e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-10 17:59:08.148806', photon_index_error2='1.12', photon_index2='2.41', ts='4.46', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='3.71e-05', EG='1.13', time_epoch_completed='1631321948.15', return_code='0', job_id='936405', GAL2='0.93', EG2='1.08', return_code2='0', energy_flux_error='3.14e-05', photon_flux_error2='9.75e-08', ts2='4.83', photon_index='2.00' WHERE bin_id='946' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:59:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 936405: <4FGL_J1501.0+2238_daily_bin946> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin946 225.257 22.6364 484531201 484790401 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.17 sec.
    Max Memory :                                 1207 MB
    Average Memory :                             327.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            752 sec.

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

