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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin70
RA = 225.257, Dec = 22.6364
tmin = 257472001, tmax = 257731201
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='931896', job_status='RUN', time_executed='2021-09-10 17:33:32.779369', time_epoch_executed='1631320412.78' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931896/ft1_4FGL_J1501.0+2238_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931896/ft2_4FGL_J1501.0+2238_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931896/ft1_4FGL_J1501.0+2238_daily_bin70.fits outfile=/scratch/kocevski/931896/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin70.fits ra=225.257 dec=22.6364 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.03
user 1.80
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931896/ft2_4FGL_J1501.0+2238_daily_bin70.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/931896/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin70.fits evtable="EVENTS" outfile="/scratch/kocevski/931896/ft1_filtered_4FGL_J1501.0+2238_daily_bin70.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.48
user 0.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931896/ft1_filtered_4FGL_J1501.0+2238_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/931896/ft2_4FGL_J1501.0+2238_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/931896/ltcube_257472001_257731201_4FGL_J1501.0+2238_daily_bin70.fits outfile=/scratch/kocevski/931896/expmap_257472001_257731201_4FGL_J1501.0+2238_daily_bin70.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/931896/ltcube_257472001_257731201_4FGL_J1501.0+2238_daily_bin70.fits
.....................!
real 190.78
user 185.01
sys 5.42

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/931896/ft1_filtered_4FGL_J1501.0+2238_daily_bin70.fits scfile=/scratch/kocevski/931896/ft2_4FGL_J1501.0+2238_daily_bin70.fits outfile=/scratch/kocevski/931896/cmap_257472001_257731201_4FGL_J1501.0+2238_daily_bin70.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.34
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931896/ft1_filtered_4FGL_J1501.0+2238_daily_bin70.fits scfile=/scratch/kocevski/931896/ft2_4FGL_J1501.0+2238_daily_bin70.fits outfile=/scratch/kocevski/931896/cmap_HighResolution_257472001_257731201_4FGL_J1501.0+2238_daily_bin70.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.1086       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2046       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.411       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11740E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    51.793       1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.989       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.386       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.951       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.182       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10514       1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.871       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4204       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81520       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=   7488.521     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2357 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5364        .25510E-06** at limit **
   2  norm          9.1089        3.2227       -.14410E-06    .33361E-04
   3  Prefactor     3.2054        5.8465       -.11764E-05   -.52685E-03
   4  norm          .10000E-03    .63566        .86202E-07** at limit **
   5  norm          .10000E-03    2.8365       -.73305E-07** at limit **
   6  Prefactor     .10000E-03    18.814       -.74019E-07** at limit **
   7  Prefactor     48.407        30.794       -.45428E-05   -.45748E-04
   8  Prefactor     11.037        22.363        .10467E-04   -.29561E-04
   9  Prefactor     .10000E-03    26.905        .31439E-05** at limit **
  10  Prefactor     .10000E-03    18.805       -.35006E-06** at limit **
  11  Prefactor     .10000E-03    2.1386       -.33069E-06** at limit **
  12  norm          51.793        50.275        .11187E-06   -.85113E-06
  13  Prefactor     49.991        51.666        .29114E-05   -.22666E-04
  14  Prefactor     .10000E-03    11.506       -.99449E-06** at limit **
  15  norm          11.387        2.4297        .80673E-08   -.59320E-03
  16  Prefactor     .10000E-03    8.4843        .16207E-05** at limit **
  17  Prefactor     13.952        13.655        .86347E-05   -.20697E-03
  18  Prefactor     40.137        43.772       -.58082E-04   -.14872E-03
  19  Prefactor     .11246        1.2146        .23932E-05   -.26926E-02
  20  Prefactor     61.874        39.058        .33434E-05   -.29426E-04
  21  Normalizat    1.4202        .21035       -.24940E-06   -.36300E-03
  22  Prefactor     .81526        .14463        .19903E-06   -.34827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.10889
  Prefactor  = 3.20537
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.4071
  Prefactor  = 11.0366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 51.793
  Prefactor  = 49.9912
  Prefactor  = 0.0001
  norm       = 11.3865
  Prefactor  = 0.0001
  Prefactor  = 13.9521
  Prefactor  = 40.1365
  Prefactor  = 0.112463
  Prefactor  = 61.8744
  Normalizat = 1.42024
  Prefactor  = 0.815262
 **********
 **   18 **HESSE 
 **********

 FCN=   7488.521     FROM HESSE     STATUS=OK           336 CALLS     2693 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5596        .17990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.1089        3.2235        .89602E-04   -1.5104    
   3  Prefactor     3.2054        5.8434        .22633E-03   -1.5350    
   4  norm          .10000E-03    .63807        .67366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.8984        .14227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.407        30.782        .57632E-04   -1.4315    
   8  Prefactor     11.037        22.341        .12064E-03   -1.5043    
   9  Prefactor     .10000E-03    26.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1414        .12359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          51.793        50.313        .55728E-04   -1.4267    
  13  Prefactor     49.991        51.732        .56720E-04   -1.4293    
  14  Prefactor     .10000E-03    11.903        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.387        2.4422        .54027E-04   -1.5033    
  16  Prefactor     .10000E-03    8.4867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.952        13.685        .10724E-03   -1.4961    
  18  Prefactor     40.137        43.725        .63234E-04   -1.4440    
  19  Prefactor     .11246        8.0013        .18143E-02   -1.5641    
  20  Prefactor     61.874        39.073        .51013E-04   -1.4133    
  21  Normalizat    1.4202        .24784        .28348E-03   -.80045    
  22  Prefactor     .81526        .16976        .25273E-03   -.99168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10149e-08
Minuit parameter uncertainties:
  1  1.02203e-05
  2  3.22361
  3  5.84445
  4  1.50631e-06
  5  1.34244e-06
  6  4.77219e-07
  7  30.7921
  8  22.358
  9  0.000105876
  10  6.07045e-05
  11  3.3193e-07
  12  50.3544
  13  51.7789
  14  3.75131e-05
  15  2.44221
  16  1.14758e-05
  17  13.6878
  18  43.7602
  19  1.89663
  20  39.0894
  21  0.248055
  22  0.169866
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  3.319e-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:  8.153e-01  1.699e-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.420e+00  2.481e-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: 3.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931896/likelihoodResults_257472001_257731201_4FGL_J1501.0+2238_daily_bin70.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) = 7488.52277512
delta logL = -0.00214151674027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7488.52063332
delta logL = 2.82055225398e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9842       1.0000          .0000       10.000    
     3 'Normalizat'    1.4203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81525       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7488.521     FROM MIGRAD    STATUS=FAILED        85 CALLS      236 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10150E-03    37.027        .12517E-02** at limit **
   2  Index         1.9180        5.5645        .50000        .55051E-04
   3  Normalizat    1.4202        .21422E-01    .28348E-03   -.32083E-05
   4  Prefactor     .81526        .15029E-01    .25273E-03   -.71973E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7488.521     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      356 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10150E-03    37.027        .27700E-03** at limit **
   2  Index         1.9180        5.5645        .42248E-03    .55051E-04
   3  Normalizat    1.4202        .21422E-01    .36595E-05   -.32083E-05
   4  Prefactor     .81526        .15029E-01    .33564E-05   -.71973E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7488.521     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      402 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.328        .25035E-02** at limit **
   2  Index         1.5656        8.4431        .50000        .36357E-07
   3  Normalizat    1.4202        .20817E-01    .11339E-04    .11390E-03
   4  Prefactor     .81526        .14605E-01    .10109E-04    .12888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.56556
  Normalizat = 1.42024
  Prefactor  = 0.815262
 **********
 **   18 **HESSE 
 **********

 FCN=   7488.521     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      431 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    179.21        .50070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5656        9.0840        .50000       -.75720    
   3  Normalizat    1.4202        .47804E-01    .22678E-05   -.80045    
   4  Prefactor     .81526        .33533E-01    .20218E-05   -.99168    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.28574e-12
Minuit parameter uncertainties:
  1  4.53185e-05
  2  720.97
  3  0.0478054
  4  0.0335336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931896': 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) = 7488.5206299
delta logL = 3.70649831893e-06

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  4.532e-05  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.566e+00  7.210e+02  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:  8.153e-01  3.353e-02  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.420e+00  4.781e-02  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/931896/cmap_HighResolution_257472001_257731201_4FGL_J1501.0+2238_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-03', job_status='DONE', photon_flux_upper_limit='3.76e-08', time_completed='2021-09-10 17:44:54.823073', job_id='931896', GAL2='0.82', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1631321094.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='70' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:44:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 931896: <4FGL_J1501.0+2238_daily_bin70> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin70 225.257 22.6364 257472001 257731201 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 :                                   681.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

