/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 110 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7446
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1501.0+2238_daily_bin3
RA = 225.257, Dec = 22.6364
tmin = 240105601, tmax = 240364801
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='931784', job_status='RUN', time_executed='2021-09-10 17:33:12.367418', time_epoch_executed='1631320392.37' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931784

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931784/ft1_4FGL_J1501.0+2238_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931784/ft2_4FGL_J1501.0+2238_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931784/ft1_4FGL_J1501.0+2238_daily_bin3.fits outfile=/scratch/kocevski/931784/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin3.fits ra=225.257 dec=22.6364 rad=12.0 tmin=240105601.0 tmax=240364801.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.44
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931784/ft1_filtered_4FGL_J1501.0+2238_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/931784/ft2_4FGL_J1501.0+2238_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/931784/ltcube_240105601_240364801_4FGL_J1501.0+2238_daily_bin3.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/931784/ft2_4FGL_J1501.0+2238_daily_bin3.fits
.....................!
real 12.61
user 12.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931784/ft1_filtered_4FGL_J1501.0+2238_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/931784/ft2_4FGL_J1501.0+2238_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/931784/ltcube_240105601_240364801_4FGL_J1501.0+2238_daily_bin3.fits outfile=/scratch/kocevski/931784/expmap_240105601_240364801_4FGL_J1501.0+2238_daily_bin3.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/931784/ltcube_240105601_240364801_4FGL_J1501.0+2238_daily_bin3.fits
.....................!
real 190.66
user 185.61
sys 4.64

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/931784/ft1_filtered_4FGL_J1501.0+2238_daily_bin3.fits scfile=/scratch/kocevski/931784/ft2_4FGL_J1501.0+2238_daily_bin3.fits outfile=/scratch/kocevski/931784/cmap_240105601_240364801_4FGL_J1501.0+2238_daily_bin3.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931784/ft1_filtered_4FGL_J1501.0+2238_daily_bin3.fits scfile=/scratch/kocevski/931784/ft2_4FGL_J1501.0+2238_daily_bin3.fits outfile=/scratch/kocevski/931784/cmap_HighResolution_240105601_240364801_4FGL_J1501.0+2238_daily_bin3.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6276       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1362       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1774       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.144       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.000       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.981       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5377       1.0000         .10000E-03   10000.    
    15 'norm      '    6.9127       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.920       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21647       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.869       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2160       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92138       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=   7566.227     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2407 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5347       -.20092E-06** at limit **
   2  norm          6.6276        2.6811       -.22523E-06    .34551E-03
   3  Prefactor     5.1393        6.8674        .30769E-06   -.57805E-04
   4  norm          1.1774        1.8828        .18312E-06   -.45287E-04
   5  norm          .10000E-03    1.6139        .14711E-07** at limit **
   6  Prefactor     20.179        36.512        .13632E-06   -.11576E-04
   7  Prefactor     .10000E-03    22.005        .41624E-07** at limit **
   8  Prefactor     26.144        16.936        .60366E-07   -.20172E-07
   9  Prefactor     11.998        19.725        .91051E-07   -.97691E-06
  10  Prefactor     24.978        48.906        .21302E-06   -.34696E-05
  11  Prefactor     .10000E-03    7.3952        .38484E-07** at limit **
  12  norm          .10000E-03    15.779       -.68202E-08** at limit **
  13  Prefactor     .10000E-03    47.452       -.34028E-06** at limit **
  14  Prefactor     3.5400        8.3797        .28751E-06   -.56440E-04
  15  norm          6.9222        1.7434       -.44063E-06   -.98093E-03
  16  Prefactor     27.903        32.688        .18650E-06   -.15445E-04
  17  Prefactor     .92367E-01    6.4880        .17791E-05   -.18307E-03
  18  Prefactor     39.938        32.739       -.11492E-05    .38166E-04
  19  Prefactor     .10000E-03    1.4454        .32543E-06** at limit **
  20  Prefactor     .10000E-03    49.769        .20632E-06** at limit **
  21  Normalizat    1.2159        .20179       -.40996E-06   -.13120E-03
  22  Prefactor     .92140        .13471       -.27746E-06   -.89523E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.62758
  Prefactor  = 5.13933
  norm       = 1.17741
  norm       = 0.0001
  Prefactor  = 20.179
  Prefactor  = 0.0001
  Prefactor  = 26.1439
  Prefactor  = 11.9981
  Prefactor  = 24.9784
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.53997
  norm       = 6.92221
  Prefactor  = 27.9032
  Prefactor  = 0.0923671
  Prefactor  = 39.9383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21594
  Prefactor  = 0.921397
 **********
 **   18 **HESSE 
 **********

 FCN=   7566.227     FROM HESSE     STATUS=OK           354 CALLS     2761 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6276        2.6656        .43791E-03   -1.5193    
   3  Prefactor     5.1393        6.8645        .17739E-03   -1.5255    
   4  norm          1.1774        1.8381        .14581E-03   -1.5491    
   5  norm          .10000E-03    1.6259        .10791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.179        37.150        .89163E-04   -1.4809    
   7  Prefactor     .10000E-03    22.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.144        16.940        .78347E-04   -1.4685    
   9  Prefactor     11.998        19.690        .11564E-03   -1.5015    
  10  Prefactor     24.978        48.852        .80147E-04   -1.4708    
  11  Prefactor     .10000E-03    7.5392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    15.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5400        8.3617        .21491E-03   -1.5332    
  15  norm          6.9222        1.9138        .53281E-04   -1.5182    
  16  Prefactor     27.903        32.775        .75819E-04   -1.4651    
  17  Prefactor     .92367E-01    13.670        .61778E-01   -1.5647    
  18  Prefactor     39.938        33.039        .31741E-03   -1.4443    
  19  Prefactor     .10000E-03    1.5004        .20397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2159        .24237        .28821E-03   -.86112    
  22  Prefactor     .92140        .15993        .22787E-03   -.95397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29415e-10
Minuit parameter uncertainties:
  1  9.26179e-06
  2  2.66567
  3  6.86556
  4  1.83814
  5  1.22686e-06
  6  37.1921
  7  1.23123e-05
  8  16.943
  9  19.7004
  10  48.9308
  11  7.54015e-06
  12  8.12665e-07
  13  4.8517e-05
  14  8.36443
  15  1.91382
  16  32.796
  17  2.24667
  18  33.0537
  19  3.97299e-06
  20  0.000104713
  21  0.242599
  22  0.160011
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  7.540e-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.214e-01  1.600e-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.216e+00  2.426e-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: 5.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931784/likelihoodResults_240105601_240364801_4FGL_J1501.0+2238_daily_bin3.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) = 7566.22807575
delta logL = -0.000632197810774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7566.22744306
delta logL = 4.89542799187e-07

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 'Index     '    2.0447       1.0000          .0000       10.000    
     3 'Normalizat'    1.2160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92139       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=   7566.227     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      218 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.372        .90712E-02** at limit **
   2  Index         2.0921        7.3200        .50000       -.49830E-04
   3  Normalizat    1.2159        .14298E-01    .65153E-01    .16903E-04
   4  Prefactor     .92140        .10048E-01    .45277E-01    .67368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.0921
  Normalizat = 1.21594
  Prefactor  = 0.921397
 **********
 **   18 **HESSE 
 **********

 FCN=   7566.227     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.232        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0921        6.0100        .50000       -.62067    
   3  Normalizat    1.2159        .22069        .28821E-03   -.86112    
   4  Prefactor     .92140        .15523        .22787E-03   -.95397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61135e-09
Minuit parameter uncertainties:
  1  0.000375656
  2  4.55628
  3  0.220857
  4  0.155303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931784': 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) = 7566.22744249
delta logL = 1.06127754407e-06

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  3.757e-04  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.092e+00  4.556e+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:  9.214e-01  1.553e-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.216e+00  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.257 22.636

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/931784/cmap_HighResolution_240105601_240364801_4FGL_J1501.0+2238_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-09-10 17:44:27.020496', job_id='931784', GAL2='0.92', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631321067.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='3' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:44:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 931784: <4FGL_J1501.0+2238_daily_bin3> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin3 225.257 22.6364 240105601 240364801 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 :                             318.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            796 sec.

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

