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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1051
RA = 225.257, Dec = 22.6364
tmin = 511747201, tmax = 512006401
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='936568', job_status='RUN', time_executed='2021-09-10 17:48:52.112821', time_epoch_executed='1631321332.11' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936568

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936568/ft1_4FGL_J1501.0+2238_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936568/ft2_4FGL_J1501.0+2238_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936568/ft1_4FGL_J1501.0+2238_daily_bin1051.fits outfile=/scratch/kocevski/936568/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1051.fits ra=225.257 dec=22.6364 rad=12.0 tmin=511747201.0 tmax=512006401.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.55
user 3.31
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936568/ft1_filtered_4FGL_J1501.0+2238_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/936568/ft2_4FGL_J1501.0+2238_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/936568/ltcube_511747201_512006401_4FGL_J1501.0+2238_daily_bin1051.fits outfile=/scratch/kocevski/936568/expmap_511747201_512006401_4FGL_J1501.0+2238_daily_bin1051.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/936568/ltcube_511747201_512006401_4FGL_J1501.0+2238_daily_bin1051.fits
.....................!
real 191.11
user 184.82
sys 5.81

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/936568/ft1_filtered_4FGL_J1501.0+2238_daily_bin1051.fits scfile=/scratch/kocevski/936568/ft2_4FGL_J1501.0+2238_daily_bin1051.fits outfile=/scratch/kocevski/936568/cmap_511747201_512006401_4FGL_J1501.0+2238_daily_bin1051.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936568/ft1_filtered_4FGL_J1501.0+2238_daily_bin1051.fits scfile=/scratch/kocevski/936568/ft2_4FGL_J1501.0+2238_daily_bin1051.fits outfile=/scratch/kocevski/936568/cmap_HighResolution_511747201_512006401_4FGL_J1501.0+2238_daily_bin1051.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/936568/ft1_filtered_4FGL_J1501.0+2238_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/936568/ft2_4FGL_J1501.0+2238_daily_bin1051.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936568/Model_4FGL_J1501.0+2238_daily_bin1051.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/936568/ft1_filtered_4FGL_J1501.0+2238_daily_bin1051.fits.....................!
real 55.12
user 53.70
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1117       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5294       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .61966       1.0000         .10000E-03   10000.    
     4 'norm      '    6.3298       1.0000         .10000E-03   10000.    
     5 'norm      '    5.7116       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.392       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14469E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1814       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.601       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .91635       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11387E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.299       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4578       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4495       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84602       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=   7166.953     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2375 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1443        12.956        .71708E-05    .41375E-03
   2  norm          3.5294        2.1033       -.41485E-08    .88688E-04
   3  Prefactor     .56005        48.751       -.13847E-04    .26874E-03
   4  norm          6.3322        4.0094       -.34878E-06    .13267E-02
   5  norm          5.7115        4.0419       -.53977E-07    .59241E-04
   6  Prefactor     .10000E-03    11.910       -.76474E-07** at limit **
   7  Prefactor     18.351        28.686        .64906E-06    .30110E-03
   8  Prefactor     .10000E-03    5.6467        .71502E-07** at limit **
   9  Prefactor     .10000E-03    94.425        .25797E-05** at limit **
  10  Prefactor     .10001E-03    71.357       -.10415E-06** at limit **
  11  Prefactor     8.1815        7.9356       -.10169E-06    .62206E-04
  12  norm          .10000E-03    12.964        .32657E-08** at limit **
  13  Prefactor     58.590        41.717       -.19460E-06    .18195E-03
  14  Prefactor     .10000E-03    1.6347       -.14076E-07** at limit **
  15  norm          .91631        .88864       -.27857E-07    .62497E-03
  16  Prefactor     .10001E-03    106.33        .10147E-05** at limit **
  17  Prefactor     .10001E-03    7.3926        .15384E-05** at limit **
  18  Prefactor     14.300        21.229        .39519E-07    .75738E-04
  19  Prefactor     .10000E-03    .93351       -.45559E-07** at limit **
  20  Prefactor     6.4461        40.192       -.64202E-06    .66115E-04
  21  Normalizat    1.4497        .20683        .15211E-05    .54062E-03
  22  Prefactor     .84585        .13954       -.32215E-07    .53590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14427
  norm       = 3.52941
  Prefactor  = 0.56005
  norm       = 6.33224
  norm       = 5.71154
  Prefactor  = 0.0001
  Prefactor  = 18.3507
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100013
  Prefactor  = 8.18145
  norm       = 0.0001
  Prefactor  = 58.5899
  Prefactor  = 0.0001
  norm       = 0.916308
  Prefactor  = 0.000100012
  Prefactor  = 0.000100007
  Prefactor  = 14.3001
  Prefactor  = 0.0001
  Prefactor  = 6.44611
  Normalizat = 1.44968
  Prefactor  = 0.845852
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.953     FROM HESSE     STATUS=OK           342 CALLS     2717 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1443        15.209        .22987E-03   -1.5353    
   2  norm          3.5294        2.1029        .92259E-04   -1.5332    
   3  Prefactor     .56005        60.234        .32445E-02   -1.5558    
   4  norm          6.3322        4.0519        .63458E-03   -1.5205    
   5  norm          5.7115        4.0408        .13876E-03   -1.5230    
   6  Prefactor     .10000E-03    11.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.351        28.669        .93390E-04   -1.4851    
   8  Prefactor     .10000E-03    5.6536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    96.413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    71.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.1815        7.9356        .14017E-03   -1.5136    
  12  norm          .10000E-03    12.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     58.590        41.771        .52408E-04   -1.4176    
  14  Prefactor     .10000E-03    1.6363        .10571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .91631        .84931        .72447E-04   -1.5517    
  16  Prefactor     .10001E-03    108.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    21.877        .39214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.300        20.977        .10592E-03   -1.4951    
  19  Prefactor     .10000E-03    .94850        .79864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4461        40.260        .15793E-03   -1.5200    
  21  Normalizat    1.4497        .24298        .26534E-03   -.79202    
  22  Prefactor     .84585        .16470        .23544E-03   -.98060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28791e-09
Minuit parameter uncertainties:
  1  13.8362
  2  2.10294
  3  11.6272
  4  4.05207
  5  4.04099
  6  2.01384e-05
  7  28.69
  8  1.94417e-07
  9  0.000457818
  10  0.00192402
  11  7.93667
  12  1.64588e-05
  13  41.7919
  14  1.3603e-06
  15  0.849325
  16  0.00226686
  17  0.000779526
  18  20.9875
  19  2.60792e-06
  20  32.2512
  21  0.243178
  22  0.164797
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  8.181e+00  7.937e+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:  8.459e-01  1.648e-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.450e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.65e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/936568/likelihoodResults_511747201_512006401_4FGL_J1501.0+2238_daily_bin1051.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) = 7166.95127207
delta logL = 0.00210148220413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7166.95070772
delta logL = 0.00266583601933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8990       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0492       1.0000          .0000       10.000    
     3 'Normalizat'    1.4483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84619       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=   7166.951     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      247 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8984        8.9368        .14267E-03    .33174E-03
   2  Index         2.0495        .67576        .73354E-02    .84233E-04
   3  Normalizat    1.4483        .23261        .26544E-03   -.21522E-03
   4  Prefactor     .84624        .16352        .23539E-03   -.30960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.89837
  Index      = 2.04955
  Normalizat = 1.44826
  Prefactor  = 0.846239
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.951     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8984        8.6758        .57067E-05   -1.5146    
   2  Index         2.0495        .65601        .29341E-03   -.63117    
   3  Normalizat    1.4483        .23268        .53088E-04   -.79243    
   4  Prefactor     .84624        .16363        .47078E-04   -.98046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49111e-10
Minuit parameter uncertainties:
  1  8.67723
  2  0.658937
  3  0.232855
  4  0.163722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936568': 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) = 7166.95070746
delta logL = 0.0026660949452

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  7.898e+00  8.677e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.050e+00  6.589e-01  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.462e-01  1.637e-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.448e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 225.257 22.636
Photon Index (Free Index): 2.05 +/- 0.66
Photon Flux (Free Index): 2.81e-08 +/- 3.42e-08
Energy Flux (Free Index): 1.73e-05 +/- 2.13e-05

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/936568/cmap_HighResolution_511747201_512006401_4FGL_J1501.0+2238_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', comment='SUCCESS', photon_flux='2.65e-08', energy_flux2='1.73e-05', photon_flux_error='2.57e-08', dlogl='2.67e-03', energy_flux='1.83e-05', photon_flux2='2.81e-08', job_status='DONE', time_completed='2021-09-10 18:00:55.144423', photon_index_error2='0.66', photon_index2='2.05', ts='2.40', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='9.21e-08', energy_flux_error2='2.13e-05', EG='1.45', time_epoch_completed='1631322055.14', return_code='0', job_id='936568', GAL2='0.85', EG2='1.45', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='3.42e-08', ts2='2.40', photon_index='2.00' WHERE bin_id='1051' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 936568: <4FGL_J1501.0+2238_daily_bin1051> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1051 225.257 22.6364 511747201 512006401 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 :                                   647.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

