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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1193
RA = 225.257, Dec = 22.6364
tmin = 548553601, tmax = 548812801
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='937686', job_status='RUN', time_executed='2021-09-10 17:51:19.515044', time_epoch_executed='1631321479.52' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937686/ft1_4FGL_J1501.0+2238_daily_bin1193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937686/ft2_4FGL_J1501.0+2238_daily_bin1193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937686/ft1_4FGL_J1501.0+2238_daily_bin1193.fits outfile=/scratch/kocevski/937686/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1193.fits ra=225.257 dec=22.6364 rad=12.0 tmin=548553601.0 tmax=548812801.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 3.46
user 3.21
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937686/ft1_filtered_4FGL_J1501.0+2238_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/937686/ft2_4FGL_J1501.0+2238_daily_bin1193.fits sctable="SC_DATA" expcube=/scratch/kocevski/937686/ltcube_548553601_548812801_4FGL_J1501.0+2238_daily_bin1193.fits outfile=/scratch/kocevski/937686/expmap_548553601_548812801_4FGL_J1501.0+2238_daily_bin1193.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/937686/ltcube_548553601_548812801_4FGL_J1501.0+2238_daily_bin1193.fits
.....................!
real 190.45
user 185.38
sys 4.72

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/937686/ft1_filtered_4FGL_J1501.0+2238_daily_bin1193.fits scfile=/scratch/kocevski/937686/ft2_4FGL_J1501.0+2238_daily_bin1193.fits outfile=/scratch/kocevski/937686/cmap_548553601_548812801_4FGL_J1501.0+2238_daily_bin1193.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937686/ft1_filtered_4FGL_J1501.0+2238_daily_bin1193.fits scfile=/scratch/kocevski/937686/ft2_4FGL_J1501.0+2238_daily_bin1193.fits outfile=/scratch/kocevski/937686/cmap_HighResolution_548553601_548812801_4FGL_J1501.0+2238_daily_bin1193.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9151       1.0000         .10000E-03   10000.    
     2 'norm      '    6.0026       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7459       1.0000         .10000E-03   10000.    
     4 'norm      '    6.3694       1.0000         .10000E-03   10000.    
     5 'norm      '    9.4231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.718       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.008       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.793       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0515       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4634       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7708       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2201       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5017       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0774       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98470       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=   11085.33     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2381 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9141        7.1111        .15061E-05   -.65758E-03
   2  norm          6.0024        2.2356        .22681E-07   -.30116E-04
   3  Prefactor     3.7463        5.2450       -.20629E-06   -.18145E-03
   4  norm          6.3693        2.7177        .42922E-07   -.63152E-04
   5  norm          9.4230        4.3461        .33598E-06    .34400E-03
   6  Prefactor     38.720        29.653        .54876E-06    .17941E-04
   7  Prefactor     .10000E-03    15.952       -.36109E-05** at limit **
   8  Prefactor     11.012        13.652        .18469E-06   -.49492E-04
   9  Prefactor     .10000E-03    15.066        .29555E-05** at limit **
  10  Prefactor     .10000E-03    30.763        .16955E-05** at limit **
  11  Prefactor     .10000E-03    3.4566        .63879E-07** at limit **
  12  norm          25.806        25.417        .18005E-05    .22614E-03
  13  Prefactor     .10000E-03    48.194       -.14180E-05** at limit **
  14  Prefactor     1.0527        2.7490        .84301E-06   -.13467E-03
  15  norm          3.4658        1.2714       -.31850E-06   -.10280E-02
  16  Prefactor     6.7675        26.974       -.32463E-06   -.37791E-04
  17  Prefactor     1.2070        11.165        .42411E-05   -.25606E-03
  18  Prefactor     .10000E-03    9.0501       -.18500E-06** at limit **
  19  Prefactor     .10000E-03    .99439       -.44128E-07** at limit **
  20  Prefactor     7.4977        23.281       -.39224E-06   -.45176E-04
  21  Normalizat    1.0773        .15791       -.88886E-06   -.12744E-03
  22  Prefactor     .98483        .10788       -.43151E-07   -.19131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.91409
  norm       = 6.00243
  Prefactor  = 3.74631
  norm       = 6.36934
  norm       = 9.42303
  Prefactor  = 38.7202
  Prefactor  = 0.000100003
  Prefactor  = 11.0119
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 25.806
  Prefactor  = 0.0001
  Prefactor  = 1.05273
  norm       = 3.46584
  Prefactor  = 6.76751
  Prefactor  = 1.20702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.49769
  Normalizat = 1.07732
  Prefactor  = 0.984826
 **********
 **   18 **HESSE 
 **********

 FCN=   11085.33     FROM HESSE     STATUS=OK           348 CALLS     2729 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9141        7.1376        .76283E-03   -1.5182    
   2  norm          6.0024        2.2353        .92869E-04   -1.5218    
   3  Prefactor     3.7463        5.2111        .20862E-03   -1.5321    
   4  norm          6.3693        2.7159        .10787E-03   -1.5203    
   5  norm          9.4230        4.3585        .13055E-03   -1.5094    
   6  Prefactor     38.720        30.165        .64414E-04   -1.4463    
   7  Prefactor     .10000E-03    16.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.012        13.650        .12075E-03   -1.5044    
   9  Prefactor     .10000E-03    15.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.806        25.788        .78877E-04   -1.4692    
  13  Prefactor     .10000E-03    48.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0527        2.5615        .27577E-02   -1.5503    
  15  norm          3.4658        1.2429        .21730E-04   -1.5336    
  16  Prefactor     6.7675        27.008        .15420E-03   -1.5188    
  17  Prefactor     1.2070        11.200        .40839E-03   -1.5488    
  18  Prefactor     .10000E-03    9.0606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.0312        .20479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4977        23.313        .14643E-03   -1.5160    
  21  Normalizat    1.0773        .18744        .28681E-03   -.90483    
  22  Prefactor     .98483        .12797        .21523E-03   -.93237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1778e-08
Minuit parameter uncertainties:
  1  7.1385
  2  2.23532
  3  5.21171
  4  2.71598
  5  4.35864
  6  30.1772
  7  0.000445898
  8  13.6538
  9  0.000388465
  10  0.000300338
  11  3.74006e-06
  12  25.7994
  13  0.000260556
  14  2.5618
  15  1.24288
  16  27.0569
  17  7.35515
  18  1.17495e-05
  19  7.13523e-07
  20  23.3416
  21  0.187559
  22  0.128005
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  3.740e-06  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.848e-01  1.280e-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.077e+00  1.876e-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.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937686/likelihoodResults_548553601_548812801_4FGL_J1501.0+2238_daily_bin1193.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) = 11085.3297145
delta logL = -0.00136128978374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11085.3283531
delta logL = 1.19354808703e-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.9866       1.0000          .0000       10.000    
     3 'Normalizat'    1.0773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98482       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=   11085.33     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    23.011        .18142E-02** at limit **
   2  Index         1.9607        6.7525        .50000        .25279E-04
   3  Normalizat    1.0773        .98088E-02    .28681E-03    .13398E-03
   4  Prefactor     .98482        .71130E-02    .21523E-03   -.82927E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100248
  Index      = 1.96068
  Normalizat = 1.07732
  Prefactor  = 0.984825
 **********
 **   18 **HESSE 
 **********

 FCN=   11085.33     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10025E-03    108.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9607        8.7674        .50000       -.65337    
   3  Normalizat    1.0773        .21858E-01    .11473E-04   -.90483    
   4  Prefactor     .98482        .15850E-01    .86094E-05   -.93237    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.61151e-09
Minuit parameter uncertainties:
  1  0.0103851
  2  238.826
  3  0.0218577
  4  0.0158497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937686': 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) = 11085.328353
delta logL = 2.7056739782e-07

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.002e-04  1.039e-02  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.961e+00  2.388e+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:  9.848e-01  1.585e-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.077e+00  2.186e-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/937686/cmap_HighResolution_548553601_548812801_4FGL_J1501.0+2238_daily_bin1193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-03', job_status='DONE', photon_flux_upper_limit='3.85e-08', time_completed='2021-09-10 18:05:52.066165', job_id='937686', GAL2='0.98', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1631322352.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1193' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:05:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 937686: <4FGL_J1501.0+2238_daily_bin1193> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1193 225.257 22.6364 548553601 548812801 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 :                                   813.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            883 sec.

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

