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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1107
RA = 225.257, Dec = 22.6364
tmin = 526262401, tmax = 526521601
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='936643', job_status='RUN', time_executed='2021-09-10 17:47:07.255986', time_epoch_executed='1631321227.26' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936643

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936643/ft1_4FGL_J1501.0+2238_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936643/ft2_4FGL_J1501.0+2238_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936643/ft1_4FGL_J1501.0+2238_daily_bin1107.fits outfile=/scratch/kocevski/936643/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1107.fits ra=225.257 dec=22.6364 rad=12.0 tmin=526262401.0 tmax=526521601.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.98
user 3.76
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936643/ft2_4FGL_J1501.0+2238_daily_bin1107.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/936643/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1107.fits evtable="EVENTS" outfile="/scratch/kocevski/936643/ft1_filtered_4FGL_J1501.0+2238_daily_bin1107.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.53
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936643/ft1_filtered_4FGL_J1501.0+2238_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/936643/ft2_4FGL_J1501.0+2238_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/936643/ltcube_526262401_526521601_4FGL_J1501.0+2238_daily_bin1107.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/936643/ft2_4FGL_J1501.0+2238_daily_bin1107.fits
.....................!
real 11.74
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936643/ft1_filtered_4FGL_J1501.0+2238_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/936643/ft2_4FGL_J1501.0+2238_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/936643/ltcube_526262401_526521601_4FGL_J1501.0+2238_daily_bin1107.fits outfile=/scratch/kocevski/936643/expmap_526262401_526521601_4FGL_J1501.0+2238_daily_bin1107.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/936643/ltcube_526262401_526521601_4FGL_J1501.0+2238_daily_bin1107.fits
.....................!
real 197.88
user 192.45
sys 5.06

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/936643/ft1_filtered_4FGL_J1501.0+2238_daily_bin1107.fits scfile=/scratch/kocevski/936643/ft2_4FGL_J1501.0+2238_daily_bin1107.fits outfile=/scratch/kocevski/936643/cmap_526262401_526521601_4FGL_J1501.0+2238_daily_bin1107.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.52
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2306       1.0000         .10000E-03   10000.    
     2 'norm      '    5.5662       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4479       1.0000         .10000E-03   10000.    
     4 'norm      '    6.7387       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9944       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34270E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5550       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.3345       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.491       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.596       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0870       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0211       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=   6172.530     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2328 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2297        9.8772       -.15466E-05    .29511E-04
   2  norm          5.5661        2.7246       -.67468E-06    .19994E-03
   3  Prefactor     4.4476        7.5769       -.36084E-05   -.20312E-03
   4  norm          6.7384        3.3203       -.45776E-06    .19624E-03
   5  norm          2.9942        3.5769       -.58196E-06   -.14018E-03
   6  Prefactor     .10000E-03    15.680       -.55351E-05** at limit **
   7  Prefactor     .10000E-03    13.377        .11123E-04** at limit **
   8  Prefactor     .10000E-03    6.4009        .89500E-07** at limit **
   9  Prefactor     .10000E-03    8.2518       -.10742E-05** at limit **
  10  Prefactor     .10000E-03    15.858       -.56305E-05** at limit **
  11  Prefactor     .10001E-03    7.6500        .19122E-07** at limit **
  12  norm          .10000E-03    17.672       -.65599E-05** at limit **
  13  Prefactor     3.4640        193.27       -.40840E-03    .12211E-03
  14  Prefactor     .10001E-03    22.992        .96056E-05** at limit **
  15  norm          4.3345        1.7879       -.98832E-06    .10190E-02
  16  Prefactor     10.450        45.853       -.96460E-04    .21360E-03
  17  Prefactor     .10000E-03    18.249       -.55519E-05** at limit **
  18  Prefactor     .10000E-03    30.470        .43582E-05** at limit **
  19  Prefactor     .10000E-03    1.1072       -.25563E-06** at limit **
  20  Prefactor     16.586        45.626       -.17892E-04    .19091E-03
  21  Normalizat    1.0870        .21880        .15096E-04    .77289E-03
  22  Prefactor     1.0211        .14860        .11460E-04    .88503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.22975
  norm       = 5.56609
  Prefactor  = 4.44758
  norm       = 6.7384
  norm       = 2.99417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 3.46403
  Prefactor  = 0.000100013
  norm       = 4.33451
  Prefactor  = 10.4504
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5857
  Normalizat = 1.08697
  Prefactor  = 1.02112
 **********
 **   18 **HESSE 
 **********

 FCN=   6172.530     FROM HESSE     STATUS=OK           336 CALLS     2664 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2297        9.8268        .14917E-03   -1.5170    
   2  norm          5.5661        2.7253        .88218E-04   -1.5236    
   3  Prefactor     4.4476        7.5392        .19093E-03   -1.5286    
   4  norm          6.7384        3.3185        .96794E-04   -1.5189    
   5  norm          2.9942        3.5694        .15753E-03   -1.5362    
   6  Prefactor     .10000E-03    15.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    37.696        .41582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    17.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4640        196.47        .21436E-03   -1.5336    
  14  Prefactor     .10001E-03    23.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.3345        1.7855        .63886E-04   -1.5292    
  16  Prefactor     10.450        45.674        .12370E-03   -1.5061    
  17  Prefactor     .10000E-03    18.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1166        .80708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.586        45.592        .98316E-04   -1.4893    
  21  Normalizat    1.0870        .25960        .29950E-03   -.90171    
  22  Prefactor     1.0211        .17640        .21142E-03   -.92029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36501e-09
Minuit parameter uncertainties:
  1  9.82902
  2  2.72537
  3  7.54083
  4  3.31862
  5  3.56962
  6  0.000153435
  7  0.00010597
  8  3.85994e-05
  9  5.81347e-06
  10  1.44337e-05
  11  0.00128463
  12  1.70215e-05
  13  52.3572
  14  0.00111151
  15  1.78549
  16  43.7511
  17  0.000304771
  18  0.000237282
  19  2.53698e-05
  20  45.6877
  21  0.259904
  22  0.176504
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  1.285e-03  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.021e+00  1.765e-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.087e+00  2.599e-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: 8.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936643/likelihoodResults_526262401_526521601_4FGL_J1501.0+2238_daily_bin1107.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) = 6172.53000794
delta logL = -0.000124790873997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6172.52985074
delta logL = 3.24106085827e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20970E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1653       1.0000          .0000       10.000    
     3 'Normalizat'    1.0870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0211       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=   6172.250     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      279 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59325        16.236        .10093E-01    .39715E-03
   2  Index         3.4250        2.8467        .11563        .67261E-04
   3  Normalizat    1.0439        .44370E-01    .68912E-01   -.17065E-03
   4  Prefactor     1.0313        .30568E-01    .42030E-01   -.35147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.593245
  Index      = 3.42496
  Normalizat = 1.04386
  Prefactor  = 1.03129
 **********
 **   18 **HESSE 
 **********

 FCN=   6172.250     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      310 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59325        54.238        .81107E-04   -1.5554    
   2  Index         3.4250        6.5041        .64724E-02   -.32047    
   3  Normalizat    1.0439        .21982        .30491E-03   -.91575    
   4  Prefactor     1.0313        .15194        .21047E-03   -.91694    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.9452e-09
Minuit parameter uncertainties:
  1  11.3545
  2  7.88446
  3  0.220007
  4  0.152002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936643': 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) = 6172.2496754
delta logL = 0.280207745902

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  5.932e-01  1.135e+01  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  3.425e+00  7.884e+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.031e+00  1.520e-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.044e+00  2.200e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/936643/cmap_HighResolution_526262401_526521601_4FGL_J1501.0+2238_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2021-09-10 17:58:48.221061', job_id='936643', GAL2='1.03', fit_tolerance='1e-08', EG2='1.04', EG='1.09', time_epoch_completed='1631321928.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.80e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1107' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:58:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 936643: <4FGL_J1501.0+2238_daily_bin1107> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1107> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep 10 17:46:57 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:46:59 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:46:59 2021
Terminated at Fri Sep 10 17:58:48 2021
Results reported at Fri Sep 10 17:58:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1107 225.257 22.6364 526262401 526521601 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 :                                   590.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            711 sec.

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

