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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1038
RA = 225.257, Dec = 22.6364
tmin = 508377601, tmax = 508636801
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='936547', job_status='RUN', time_executed='2021-09-10 17:47:00.742527', time_epoch_executed='1631321220.74' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936547

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936547/ft1_4FGL_J1501.0+2238_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936547/ft2_4FGL_J1501.0+2238_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936547/ft1_4FGL_J1501.0+2238_daily_bin1038.fits outfile=/scratch/kocevski/936547/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1038.fits ra=225.257 dec=22.6364 rad=12.0 tmin=508377601.0 tmax=508636801.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.60
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936547/ft2_4FGL_J1501.0+2238_daily_bin1038.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/936547/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1038.fits evtable="EVENTS" outfile="/scratch/kocevski/936547/ft1_filtered_4FGL_J1501.0+2238_daily_bin1038.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/936547/ft1_filtered_4FGL_J1501.0+2238_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/936547/ft2_4FGL_J1501.0+2238_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/936547/ltcube_508377601_508636801_4FGL_J1501.0+2238_daily_bin1038.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/936547/ft2_4FGL_J1501.0+2238_daily_bin1038.fits
.....................!
real 11.52
user 11.17
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936547/ft1_filtered_4FGL_J1501.0+2238_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/936547/ft2_4FGL_J1501.0+2238_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/936547/ltcube_508377601_508636801_4FGL_J1501.0+2238_daily_bin1038.fits outfile=/scratch/kocevski/936547/expmap_508377601_508636801_4FGL_J1501.0+2238_daily_bin1038.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/936547/ltcube_508377601_508636801_4FGL_J1501.0+2238_daily_bin1038.fits
.....................!
real 190.65
user 185.47
sys 4.75

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/936547/ft1_filtered_4FGL_J1501.0+2238_daily_bin1038.fits scfile=/scratch/kocevski/936547/ft2_4FGL_J1501.0+2238_daily_bin1038.fits outfile=/scratch/kocevski/936547/cmap_508377601_508636801_4FGL_J1501.0+2238_daily_bin1038.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/936547/ft1_filtered_4FGL_J1501.0+2238_daily_bin1038.fits scfile=/scratch/kocevski/936547/ft2_4FGL_J1501.0+2238_daily_bin1038.fits outfile=/scratch/kocevski/936547/cmap_HighResolution_508377601_508636801_4FGL_J1501.0+2238_daily_bin1038.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.826       1.0000         .10000E-03   10000.    
     2 'norm      '    6.6610       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.5089       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8847       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.667       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30236E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11371E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.1574       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.063       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .61730       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11183E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .88375       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3019       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98564       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=   7947.009     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2396 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.825        9.6686        .67105E-07    .35865E-05
   2  norm          6.6555        3.0242        .12314E-07   -.37533E-04
   3  Prefactor     .10000E-03    2.6292       -.12586E-06** at limit **
   4  norm          8.5089        3.6675        .41062E-07   -.14415E-04
   5  norm          2.8834        3.1869        .27834E-06    .20439E-02
   6  Prefactor     1.8300        109.32        .21357E-05    .44324E-05
   7  Prefactor     .10000E-03    5.4180       -.60101E-07** at limit **
   8  Prefactor     .10000E-03    7.8882       -.19063E-06** at limit **
   9  Prefactor     .10000E-03    18.234       -.34257E-07** at limit **
  10  Prefactor     .10000E-03    40.362       -.18603E-06** at limit **
  11  Prefactor     13.671        10.558        .10381E-06   -.24756E-04
  12  norm          .10000E-03    34.807        .11364E-05** at limit **
  13  Prefactor     .10000E-03    45.746        .33118E-06** at limit **
  14  Prefactor     .10000E-03    14.924       -.82535E-06** at limit **
  15  norm          7.1602        2.4243       -.78868E-06   -.27756E-02
  16  Prefactor     29.033        34.738        .81984E-06    .30064E-04
  17  Prefactor     .56122        72.497        .84491E-05   -.29820E-03
  18  Prefactor     .10000E-03    28.755       -.75123E-06** at limit **
  19  Prefactor     .10000E-03    1.7736        .46836E-06** at limit **
  20  Prefactor     .73552        49.289       -.38581E-05   -.26656E-05
  21  Normalizat    1.3021        .21163       -.99962E-06   -.33289E-03
  22  Prefactor     .98555        .14005        .72918E-06   -.45506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8252
  norm       = 6.65549
  Prefactor  = 0.0001
  norm       = 8.50889
  norm       = 2.88337
  Prefactor  = 1.83
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6708
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.16016
  Prefactor  = 29.0331
  Prefactor  = 0.56122
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.73552
  Normalizat = 1.30206
  Prefactor  = 0.985552
 **********
 **   18 **HESSE 
 **********

 FCN=   7947.009     FROM HESSE     STATUS=OK           350 CALLS     2746 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.825        9.6685        .12176E-03   -1.5050    
   2  norm          6.6555        3.0260        .10117E-03   -1.5192    
   3  Prefactor     .10000E-03    2.6357        .14107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.5089        3.6691        .10727E-03   -1.5124    
   5  norm          2.8834        4.8476        .11964E-02   -1.5368    
   6  Prefactor     1.8300        111.02        .30794E-03   -1.5437    
   7  Prefactor     .10000E-03    5.4195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    40.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.671        10.566        .10835E-03   -1.4968    
  12  norm          .10000E-03    34.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.050        .21386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.1602        2.7596        .62904E-04   -1.5173    
  16  Prefactor     29.033        34.838        .74316E-04   -1.4630    
  17  Prefactor     .56122        130.23        .42408E-02   -1.5558    
  18  Prefactor     .10000E-03    28.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3781        .22374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .73552        31.739        .12741       -1.5536    
  21  Normalizat    1.3021        .24971        .30360E-03   -.83505    
  22  Prefactor     .98555        .16519        .23279E-03   -.93213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75277e-09
Minuit parameter uncertainties:
  1  9.66991
  2  3.02608
  3  1.60941e-06
  4  3.66918
  5  4.84829
  6  28.5624
  7  7.9155e-07
  8  3.95961e-06
  9  2.21792e-05
  10  7.69559e-06
  11  10.5672
  12  0.000107233
  13  2.13377e-05
  14  4.62633e-05
  15  2.75969
  16  34.8622
  17  17.1348
  18  9.2399e-05
  19  0.000152843
  20  9.66804
  21  0.249939
  22  0.165277
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.367e+01  1.057e+01  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.856e-01  1.653e-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.302e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.44e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 3.05e-05 +/- 2.36e-05

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) = 7946.47741496
delta logL = 0.531934974232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7946.46544319
delta logL = 0.543906743826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9877       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7813       1.0000          .0000       10.000    
     3 'Normalizat'    1.2180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0141       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7946.465     FROM MIGRAD    STATUS=FAILED        81 CALLS      282 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9872        15.878        .11910E-03    .22013E-03
   2  Index         2.7813        1.2450        .44865E-02    .95353E-03
   3  Normalizat    1.2180        .27269        .31209E-03   -.20031E-03
   4  Prefactor     1.0141        .17341        .22970E-03   -.61411E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7946.465     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      367 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9872        15.878        .11813E-03   -1.5179    
   2  Index         2.7813        1.2450        .79691E-03   -.45976    
   3  Normalizat    1.2180        .27269        .30269E-03   -.86047    
   4  Prefactor     1.0141        .17341        .19081E-03   -.92261    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7946.465     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      396 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9870        9.6218        .47638E-05   -.10548E-03
   2  Index         2.7813        .75913        .89730E-03    .19081E-04
   3  Normalizat    1.2180        .25474        .12484E-04   -.13205E-03
   4  Prefactor     1.0141        .16675        .45940E-04   -.38407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.98701
  Index      = 2.78134
  Normalizat = 1.21804
  Prefactor  = 1.01409
 **********
 **   18 **HESSE 
 **********

 FCN=   7946.465     FROM HESSE     STATUS=OK            23 CALLS      419 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9870        9.0307        .95276E-06   -1.5179    
   2  Index         2.7813        .71261        .35892E-04   -.45976    
   3  Normalizat    1.2180        .25346        .24968E-05   -.86047    
   4  Prefactor     1.0141        .16628        .91879E-05   -.92261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95771e-10
Minuit parameter uncertainties:
  1  9.03243
  2  0.715653
  3  0.253714
  4  0.166369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936547': 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) = 7946.46544317
delta logL = 0.543906757553

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  6.987e+00  9.032e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.781e+00  7.157e-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:  1.014e+00  1.664e-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.218e+00  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.76
Ra Dec: 225.257 22.636
Photon Index (Free Index): 2.78 +/- 0.72
Photon Flux (Free Index): 1.22e-07 +/- 8.89e-08
Energy Flux (Free Index): 2.76e-05 +/- 1.49e-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/936547/cmap_HighResolution_508377601_508636801_4FGL_J1501.0+2238_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.44e-08', energy_flux2='2.76e-05', photon_flux_error='3.43e-08', dlogl='5.44e-01', energy_flux='3.05e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-10 17:57:43.657963', photon_index_error2='0.72', photon_index2='2.78', ts='4.65', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='1.30', time_epoch_completed='1631321863.66', return_code='0', job_id='936547', GAL2='1.01', EG2='1.22', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='8.89e-08', ts2='5.76', photon_index='2.00' WHERE bin_id='1038' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:57:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 936547: <4FGL_J1501.0+2238_daily_bin1038> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1038 225.257 22.6364 508377601 508636801 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 :                                   610.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            656 sec.

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

