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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin15
RA = 225.257, Dec = 22.6364
tmin = 243216001, tmax = 243475201
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='931805', job_status='RUN', time_executed='2021-09-10 17:33:18.256118', time_epoch_executed='1631320398.26' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931805

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931805/ft1_4FGL_J1501.0+2238_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931805/ft2_4FGL_J1501.0+2238_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931805/ft1_4FGL_J1501.0+2238_daily_bin15.fits outfile=/scratch/kocevski/931805/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin15.fits ra=225.257 dec=22.6364 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.36
user 1.16
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931805/ft2_4FGL_J1501.0+2238_daily_bin15.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/931805/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/931805/ft1_filtered_4FGL_J1501.0+2238_daily_bin15.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931805/ft1_filtered_4FGL_J1501.0+2238_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/931805/ft2_4FGL_J1501.0+2238_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/931805/ltcube_243216001_243475201_4FGL_J1501.0+2238_daily_bin15.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/931805/ft2_4FGL_J1501.0+2238_daily_bin15.fits
.....................!
real 19.29
user 18.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931805/ft1_filtered_4FGL_J1501.0+2238_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/931805/ft2_4FGL_J1501.0+2238_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/931805/ltcube_243216001_243475201_4FGL_J1501.0+2238_daily_bin15.fits outfile=/scratch/kocevski/931805/expmap_243216001_243475201_4FGL_J1501.0+2238_daily_bin15.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/931805/ltcube_243216001_243475201_4FGL_J1501.0+2238_daily_bin15.fits
.....................!
real 192.45
user 187.18
sys 4.92

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/931805/ft1_filtered_4FGL_J1501.0+2238_daily_bin15.fits scfile=/scratch/kocevski/931805/ft2_4FGL_J1501.0+2238_daily_bin15.fits outfile=/scratch/kocevski/931805/cmap_243216001_243475201_4FGL_J1501.0+2238_daily_bin15.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931805/ft1_filtered_4FGL_J1501.0+2238_daily_bin15.fits scfile=/scratch/kocevski/931805/ft2_4FGL_J1501.0+2238_daily_bin15.fits outfile=/scratch/kocevski/931805/cmap_HighResolution_243216001_243475201_4FGL_J1501.0+2238_daily_bin15.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41540E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.2314       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.2895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4884       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.686       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10929E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.031       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36650       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.453       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0528       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.654       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9647       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40876E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99891       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90029       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=   7297.352     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2516 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7445        .68276E-01** at limit **
   2  norm          7.2314        2.8755        .37290E-02   -.18049E-04
   3  Prefactor     .10000E-03    5.2265        .90712E-02** at limit **
   4  norm          .10000E-03    .63468        .90712E-02** at limit **
   5  norm          9.2891        4.8819        .32873E-02    .51703E-04
   6  Prefactor     1.4672        185.58        .87870E-02   -.16191E-03
   7  Prefactor     .10000E-03    12.779        .90712E-02** at limit **
   8  Prefactor     14.690        17.199        .26129E-02    .53704E-03
   9  Prefactor     .10000E-03    10.241        .90712E-02** at limit **
  10  Prefactor     29.980        33.896        .18278E-02   -.37717E-03
  11  Prefactor     .36374        3.5740        .55846E-01    .96363E-03
  12  norm          .10002E-03    11.987        .90712E-02** at limit **
  13  Prefactor     .10000E-03    26.721        .90712E-02** at limit **
  14  Prefactor     12.452        9.4375        .28378E-02   -.62516E-03
  15  norm          5.0527        1.4574        .44721E-02    .22603E-04
  16  Prefactor     26.651        31.455        .19399E-02    .10347E-03
  17  Prefactor     .10000E-03    2.3817        .90712E-02** at limit **
  18  Prefactor     .10001E-03    11.678        .90712E-02** at limit **
  19  Prefactor     1.9647        2.0157        .73973E-02    .46987E-03
  20  Prefactor     .10016E-03    19.223        .12782    ** at limit **
  21  Normalizat    .99899        .19039        .46153E-01    .17893E-04
  22  Prefactor     .90028        .12604        .45009E-01    .23301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 7.23136
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.28912
  Prefactor  = 1.46717
  Prefactor  = 0.000100001
  Prefactor  = 14.6901
  Prefactor  = 0.0001
  Prefactor  = 29.9799
  Prefactor  = 0.363744
  norm       = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 12.4518
  norm       = 5.05274
  Prefactor  = 26.6512
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 1.96467
  Prefactor  = 0.000100157
  Normalizat = 0.998985
  Prefactor  = 0.900279
 **********
 **   18 **HESSE 
 **********

 FCN=   7297.352     FROM HESSE     STATUS=OK           364 CALLS     2880 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6418        .61237E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.2314        2.8762        .88259E-04   -1.5170    
   3  Prefactor     .10000E-03    5.3400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .63839        .66443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.2891        4.8864        .13149E-03   -1.5098    
   6  Prefactor     1.4672        189.37        .35148E-03   -1.5466    
   7  Prefactor     .10000E-03    12.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.690        17.202        .10452E-03   -1.4941    
   9  Prefactor     .10000E-03    10.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.980        33.874        .73113E-04   -1.4612    
  11  Prefactor     .36374        9.2126        .31267E-02   -1.5587    
  12  norm          .10002E-03    11.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.452        9.4459        .11351E-03   -1.5002    
  15  norm          5.0527        1.4592        .53294E-04   -1.5258    
  16  Prefactor     26.651        31.456        .77596E-04   -1.4675    
  17  Prefactor     .10000E-03    2.3855        .12871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    11.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9647        2.0029        .11874E-03   -1.5428    
  20  Prefactor     .10016E-03    22.006        .11514       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99899        .22102        .27985E-03   -.93064    
  22  Prefactor     .90028        .14791        .20730E-03   -.96131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21761e-08
Minuit parameter uncertainties:
  1  0.000136648
  2  2.8763
  3  3.52768e-07
  4  1.80138e-07
  5  4.88658
  6  33.4443
  7  0.000205067
  8  17.2078
  9  3.01634e-05
  10  33.8954
  11  3.6613
  12  0.000874711
  13  2.78436e-05
  14  9.44703
  15  1.4592
  16  31.4752
  17  4.17577e-07
  18  0.000710621
  19  2.00293
  20  0.0037206
  21  0.221222
  22  0.147971
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.637e-01  3.661e+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:  9.003e-01  1.480e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  9.990e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/931805/likelihoodResults_243216001_243475201_4FGL_J1501.0+2238_daily_bin15.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) = 7297.34920341
delta logL = 0.00284111854944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7297.34828623
delta logL = 0.0037582981804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53824       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7843       1.0000          .0000       10.000    
     3 'Normalizat'    .99952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89977       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=   7297.348     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      296 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54320        10.314        .22852E-02    .17433E-02
   2  Index         1.7888        2.2686        .31315E-01   -.71490E-05
   3  Normalizat    .99952        .20312        .27978E-03    .67412E-04
   4  Prefactor     .89982        .14479        .20735E-03    .64094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.5432
  Index      = 1.78876
  Normalizat = 0.999522
  Prefactor  = 0.899815
 **********
 **   18 **HESSE 
 **********

 FCN=   7297.348     FROM HESSE     STATUS=OK            27 CALLS      323 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54320        8.4298        .45704E-03   -1.5561    
   2  Index         1.7888        2.0817        .12526E-02   -.69743    
   3  Normalizat    .99952        .20322        .11191E-04   -.93046    
   4  Prefactor     .89982        .14481        .82940E-05   -.96148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58137e-11
Minuit parameter uncertainties:
  1  4.28006
  2  2.20064
  3  0.20338
  4  0.144872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931805': 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) = 7297.3482827
delta logL = 0.00376182781656

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  5.432e-01  4.280e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.789e+00  2.201e+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:  8.998e-01  1.449e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  9.995e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/931805/cmap_HighResolution_243216001_243475201_4FGL_J1501.0+2238_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2021-09-10 17:44:39.267207', job_id='931805', GAL2='0.90', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631321079.27', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.76e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='15' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:44:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 931805: <4FGL_J1501.0+2238_daily_bin15> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin15 225.257 22.6364 243216001 243475201 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 :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            807 sec.

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

