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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1025
RA = 225.257, Dec = 22.6364
tmin = 505008001, tmax = 505267201
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='936527', job_status='RUN', time_executed='2021-09-10 17:50:03.509671', time_epoch_executed='1631321403.51' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936527/ft1_4FGL_J1501.0+2238_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936527/ft2_4FGL_J1501.0+2238_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936527/ft1_4FGL_J1501.0+2238_daily_bin1025.fits outfile=/scratch/kocevski/936527/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1025.fits ra=225.257 dec=22.6364 rad=12.0 tmin=505008001.0 tmax=505267201.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 4.51
user 4.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936527/ft2_4FGL_J1501.0+2238_daily_bin1025.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/936527/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/936527/ft1_filtered_4FGL_J1501.0+2238_daily_bin1025.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/936527/ft1_filtered_4FGL_J1501.0+2238_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/936527/ft2_4FGL_J1501.0+2238_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/936527/ltcube_505008001_505267201_4FGL_J1501.0+2238_daily_bin1025.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/936527/ft2_4FGL_J1501.0+2238_daily_bin1025.fits
.....................!
real 12.19
user 11.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936527/ft1_filtered_4FGL_J1501.0+2238_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/936527/ft2_4FGL_J1501.0+2238_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/936527/ltcube_505008001_505267201_4FGL_J1501.0+2238_daily_bin1025.fits outfile=/scratch/kocevski/936527/expmap_505008001_505267201_4FGL_J1501.0+2238_daily_bin1025.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/936527/ltcube_505008001_505267201_4FGL_J1501.0+2238_daily_bin1025.fits
.....................!
real 191.25
user 185.70
sys 5.16

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/936527/ft1_filtered_4FGL_J1501.0+2238_daily_bin1025.fits scfile=/scratch/kocevski/936527/ft2_4FGL_J1501.0+2238_daily_bin1025.fits outfile=/scratch/kocevski/936527/cmap_505008001_505267201_4FGL_J1501.0+2238_daily_bin1025.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/936527/ft1_filtered_4FGL_J1501.0+2238_daily_bin1025.fits scfile=/scratch/kocevski/936527/ft2_4FGL_J1501.0+2238_daily_bin1025.fits outfile=/scratch/kocevski/936527/cmap_HighResolution_505008001_505267201_4FGL_J1501.0+2238_daily_bin1025.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.3730       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4618       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8218       1.0000         .10000E-03   10000.    
     5 'norm      '    10.753       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .91123E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.058       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.951       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.546       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8162       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1061       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11205E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0420       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.117       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79237       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0243       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=   6299.882     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2375 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0315        .12986E-06** at limit **
   2  norm          9.3725        3.5214        .27879E-08    .31812E-04
   3  Prefactor     2.4562        6.6531       -.20106E-05   -.52931E-03
   4  norm          4.8213        3.7977       -.66370E-07   -.27179E-03
   5  norm          10.753        5.0813        .51484E-07    .87435E-04
   6  Prefactor     .10524E-03    42.581       -.45289E-05** at limit **
   7  Prefactor     .10000E-03    26.592        .94127E-07** at limit **
   8  Prefactor     .10000E-03    10.366       -.26969E-06** at limit **
   9  Prefactor     30.861        28.953        .22593E-05   -.44903E-05
  10  Prefactor     39.020        35.084        .22411E-04    .78565E-05
  11  Prefactor     .10000E-03    2.6706        .51059E-07** at limit **
  12  norm          18.956        41.821        .97725E-06   -.44247E-05
  13  Prefactor     30.528        47.810       -.45021E-05   -.15839E-05
  14  Prefactor     6.8137        7.8601       -.15160E-05   -.12372E-03
  15  norm          2.1064        1.4045        .19432E-06   -.10012E-03
  16  Prefactor     .10000E-03    32.525       -.94306E-06** at limit **
  17  Prefactor     3.0404        8.6382       -.17540E-05   -.32001E-03
  18  Prefactor     .10000E-03    19.621        .76326E-07** at limit **
  19  Prefactor     .10000E-03    .70979        .39520E-07** at limit **
  20  Prefactor     42.115        39.016       -.65111E-06   -.14111E-05
  21  Normalizat    .79218        .20359        .89930E-06    .24269E-03
  22  Prefactor     1.0246        .13799       -.68247E-06    .32514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.37252
  Prefactor  = 2.45615
  norm       = 4.82126
  norm       = 10.7529
  Prefactor  = 0.000105243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.8605
  Prefactor  = 39.0204
  Prefactor  = 0.0001
  norm       = 18.9559
  Prefactor  = 30.5278
  Prefactor  = 6.81369
  norm       = 2.10642
  Prefactor  = 0.0001
  Prefactor  = 3.04038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.1153
  Normalizat = 0.792182
  Prefactor  = 1.0246
 **********
 **   18 **HESSE 
 **********

 FCN=   6299.882     FROM HESSE     STATUS=OK           356 CALLS     2731 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.3725        3.5218        .88059E-04   -1.5096    
   3  Prefactor     2.4562        6.6730        .26065E-03   -1.5395    
   4  norm          4.8213        3.7895        .12883E-03   -1.5269    
   5  norm          10.753        5.0832        .11876E-03   -1.5052    
   6  Prefactor     .10524E-03    43.060        .12751       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.861        28.942        .72127E-04   -1.4596    
  10  Prefactor     39.020        34.845        .32067E-03   -1.4458    
  11  Prefactor     .10000E-03    2.6773        .12667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.956        41.859        .92004E-04   -1.4837    
  13  Prefactor     30.528        47.912        .72495E-04   -1.4602    
  14  Prefactor     6.8137        7.8702        .15368E-03   -1.5186    
  15  norm          2.1064        1.4025        .62040E-04   -1.5418    
  16  Prefactor     .10000E-03    32.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0404        8.6669        .23263E-03   -1.5359    
  18  Prefactor     .10000E-03    19.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .72036        .65287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     42.115        39.042        .61770E-04   -1.4409    
  21  Normalizat    .79218        .23761        .30972E-03   -1.0036    
  22  Prefactor     1.0246        .16111        .20014E-03   -.91914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93482e-09
Minuit parameter uncertainties:
  1  2.9222e-05
  2  3.5219
  3  6.67503
  4  3.78965
  5  5.08341
  6  0.0300725
  7  0.00021797
  8  9.43791e-05
  9  28.9556
  10  34.8628
  11  4.46065e-07
  12  41.9236
  13  47.9727
  14  7.87137
  15  1.40256
  16  1.52341e-05
  17  8.67048
  18  2.91452e-05
  19  1.04553e-06
  20  39.0658
  21  0.237917
  22  0.16119
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.025e+00  1.612e-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:  7.922e-01  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/936527/likelihoodResults_505008001_505267201_4FGL_J1501.0+2238_daily_bin1025.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) = 6299.88366514
delta logL = -0.00176898274185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6299.88189625
delta logL = -8.98753569345e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9854       1.0000          .0000       10.000    
     3 'Normalizat'    .79209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0247       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=   6299.882     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      243 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7585        .12800E-02** at limit **
   2  Index         1.9694        5.9756        .50000        .45282E-04
   3  Normalizat    .79218        .21217        .30972E-03   -.77817E-05
   4  Prefactor     1.0246        .15534        .20014E-03   -.13122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 1.96936
  Normalizat = 0.792181
  Prefactor  = 1.0246
 **********
 **   18 **HESSE 
 **********

 FCN=   6299.882     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7347        .25601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9694        5.9765        .50000       -.65118    
   3  Normalizat    .79218        .21235        .12389E-04   -1.0036    
   4  Prefactor     1.0246        .15547        .80057E-05   -.91914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63975e-09
Minuit parameter uncertainties:
  1  0.000208687
  2  3.97964
  3  0.212571
  4  0.155538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936527': 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) = 6299.88189577
delta logL = 3.84742634196e-07

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  2.087e-04  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.969e+00  3.980e+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.025e+00  1.555e-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:  7.922e-01  2.126e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/936527/cmap_HighResolution_505008001_505267201_4FGL_J1501.0+2238_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-03', job_status='DONE', photon_flux_upper_limit='4.33e-08', time_completed='2021-09-10 18:01:56.040973', job_id='936527', GAL2='1.02', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1631322116.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1025' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:01:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 936527: <4FGL_J1501.0+2238_daily_bin1025> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1025 225.257 22.6364 505008001 505267201 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 :                                   607.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

