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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1500
RA = 225.257, Dec = 22.6364
tmin = 628128001, tmax = 628387201
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='938131', job_status='RUN', time_executed='2021-09-10 17:55:29.785795', time_epoch_executed='1631321729.79' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938131/ft1_4FGL_J1501.0+2238_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938131/ft2_4FGL_J1501.0+2238_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938131/ft1_4FGL_J1501.0+2238_daily_bin1500.fits outfile=/scratch/kocevski/938131/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1500.fits ra=225.257 dec=22.6364 rad=12.0 tmin=628128001.0 tmax=628387201.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 5.22
user 5.00
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938131/ft1_filtered_4FGL_J1501.0+2238_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/938131/ft2_4FGL_J1501.0+2238_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/938131/ltcube_628128001_628387201_4FGL_J1501.0+2238_daily_bin1500.fits outfile=/scratch/kocevski/938131/expmap_628128001_628387201_4FGL_J1501.0+2238_daily_bin1500.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/938131/ltcube_628128001_628387201_4FGL_J1501.0+2238_daily_bin1500.fits
.....................!
real 189.09
user 184.54
sys 4.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/938131/ft1_filtered_4FGL_J1501.0+2238_daily_bin1500.fits scfile=/scratch/kocevski/938131/ft2_4FGL_J1501.0+2238_daily_bin1500.fits outfile=/scratch/kocevski/938131/cmap_628128001_628387201_4FGL_J1501.0+2238_daily_bin1500.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938131/ft1_filtered_4FGL_J1501.0+2238_daily_bin1500.fits scfile=/scratch/kocevski/938131/ft2_4FGL_J1501.0+2238_daily_bin1500.fits outfile=/scratch/kocevski/938131/cmap_HighResolution_628128001_628387201_4FGL_J1501.0+2238_daily_bin1500.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.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5824       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6004       1.0000         .10000E-03   10000.    
     4 'norm      '    3.9305       1.0000         .10000E-03   10000.    
     5 'norm      '    5.4202       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5163       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.791       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .70232       1.0000         .10000E-03   10000.    
    12 'norm      '    45.899       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7083       1.0000         .10000E-03   10000.    
    15 'norm      '    .52333       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55403       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2172       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86040       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0039       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=   6244.427     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2405 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9591       -.72016E-07** at limit **
   2  norm          2.5819        2.0445        .27692E-07   -.10660E-04
   3  Prefactor     2.5953        6.9023        .95793E-06   -.20348E-04
   4  norm          3.9289        3.4308        .11513E-06   -.44307E-04
   5  norm          5.4191        3.7107        .14916E-07   -.22089E-04
   6  Prefactor     5.4955        27.491        .10498E-05    .34377E-04
   7  Prefactor     .10000E-03    37.427       -.62798E-06** at limit **
   8  Prefactor     .10000E-03    25.970       -.63793E-06** at limit **
   9  Prefactor     48.784        32.529        .84750E-07   -.53536E-04
  10  Prefactor     .10000E-03    31.145       -.22707E-06** at limit **
  11  Prefactor     .70253        5.4297        .29324E-05   -.51973E-04
  12  norm          45.915        43.805       -.14657E-06   -.42157E-04
  13  Prefactor     28.647        36.306        .44320E-06    .80662E-04
  14  Prefactor     3.7025        8.6523        .47980E-06   -.80857E-04
  15  norm          .52316        .87225        .14206E-06    .31777E-03
  16  Prefactor     .11152E-03    25.134       -.10730E-07** at limit **
  17  Prefactor     .10000E-03    5.1224       -.91537E-07** at limit **
  18  Prefactor     .10000E-03    15.817       -.31348E-07** at limit **
  19  Prefactor     3.2164        2.2907        .33994E-07   -.25187E-04
  20  Prefactor     .10000E-03    35.148       -.17275E-07** at limit **
  21  Normalizat    .86075        .19407       -.91970E-06   -.31088E-04
  22  Prefactor     1.0039        .13447       -.62990E-07   -.75299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.58195
  Prefactor  = 2.59534
  norm       = 3.92887
  norm       = 5.41915
  Prefactor  = 5.49546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.7838
  Prefactor  = 0.0001
  Prefactor  = 0.702528
  norm       = 45.9148
  Prefactor  = 28.6475
  Prefactor  = 3.70254
  norm       = 0.523164
  Prefactor  = 0.000111524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.21639
  Prefactor  = 0.0001
  Normalizat = 0.860751
  Prefactor  = 1.00388
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.427     FROM HESSE     STATUS=OK           352 CALLS     2757 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9644        .15345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5819        2.0435        .97588E-04   -1.5387    
   3  Prefactor     2.5953        6.8893        .25300E-03   -1.5386    
   4  norm          3.9289        3.4195        .12924E-03   -1.5312    
   5  norm          5.4191        3.7111        .12221E-03   -1.5242    
   6  Prefactor     5.4955        27.762        .17107E-03   -1.5239    
   7  Prefactor     .10000E-03    37.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.784        32.504        .57409E-04   -1.4310    
  10  Prefactor     .10000E-03    31.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .70253        5.3845        .35772E-03   -1.5540    
  12  norm          45.915        43.835        .59181E-04   -1.4352    
  13  Prefactor     28.647        36.392        .74847E-04   -1.4637    
  14  Prefactor     3.7025        8.6402        .20971E-03   -1.5323    
  15  norm          .52316        .75941        .91562E-03   -1.5563    
  16  Prefactor     .11152E-03    33.290        .11254       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1884        .17435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2164        2.2904        .97344E-04   -1.5349    
  20  Prefactor     .10000E-03    35.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .86075        .22705        .29266E-03   -.97853    
  22  Prefactor     1.0039        .15930        .19701E-03   -.92600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2948e-10
Minuit parameter uncertainties:
  1  6.01403e-06
  2  2.04352
  3  6.89143
  4  3.4197
  5  3.7113
  6  24.7217
  7  5.63298e-05
  8  2.67512e-05
  9  32.5162
  10  4.22401e-05
  11  3.89007
  12  43.8661
  13  36.42
  14  8.64307
  15  0.759428
  16  0.0391949
  17  1.72106e-06
  18  1.33085e-06
  19  2.29048
  20  4.6596e-05
  21  0.227306
  22  0.159377
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  7.025e-01  3.890e+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.004e+00  1.594e-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:  8.608e-01  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/938131/likelihoodResults_628128001_628387201_4FGL_J1501.0+2238_daily_bin1500.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) = 6244.40605537
delta logL = 0.0206063757487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6244.39593925
delta logL = 0.0307224952949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3460       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6246       1.0000          .0000       10.000    
     3 'Normalizat'    .86237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0024       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=   6244.396     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      263 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3538        4.8308        .32027E-03    .22718E-05
   2  Index         1.6288        1.2813        .11312E-01    .14854E-05
   3  Normalizat    .86246        .21497        .29240E-03   -.38881E-06
   4  Prefactor     1.0023        .15648        .19714E-03    .16147E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.35379
  Index      = 1.62878
  Normalizat = 0.862464
  Prefactor  = 1.00234
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.396     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .92E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3538        4.8009        .12811E-04   -1.5475    
   2  Index         1.6288        1.2742        .45248E-03   -.73994    
   3  Normalizat    .86246        .21515        .11696E-04   -.97792    
   4  Prefactor     1.0023        .15661        .39428E-04   -.92652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19829e-14
Minuit parameter uncertainties:
  1  4.80229
  2  1.30095
  3  0.215359
  4  0.15668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938131': 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) = 6244.39593227
delta logL = 0.0307294769864

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.354e+00  4.802e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.629e+00  1.301e+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.002e+00  1.567e-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:  8.625e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/938131/cmap_HighResolution_628128001_628387201_4FGL_J1501.0+2238_daily_bin1500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-03', job_status='DONE', photon_flux_upper_limit='4.83e-08', time_completed='2021-09-10 18:05:44.325802', job_id='938131', GAL2='1.00', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631322344.33', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.07e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1500' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 938131: <4FGL_J1501.0+2238_daily_bin1500> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1500> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 17:51:41 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:51:42 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:51:42 2021
Terminated at Fri Sep 10 18:05:44 2021
Results reported at Fri Sep 10 18:05:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1500 225.257 22.6364 628128001 628387201 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 :                                   606.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             286.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

