/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 179 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1501.0+2238_daily_bin99
RA = 225.257, Dec = 22.6364
tmin = 264988801, tmax = 265248001
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='931944', job_status='RUN', time_executed='2021-09-10 17:34:34.734439', time_epoch_executed='1631320474.73' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='99'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931944

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931944/ft1_4FGL_J1501.0+2238_daily_bin99.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931944/ft2_4FGL_J1501.0+2238_daily_bin99.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931944/ft1_4FGL_J1501.0+2238_daily_bin99.fits outfile=/scratch/kocevski/931944/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin99.fits ra=225.257 dec=22.6364 rad=12.0 tmin=264988801.0 tmax=265248001.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.43
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931944/ft1_filtered_4FGL_J1501.0+2238_daily_bin99.fits" evtable="EVENTS" scfile=/scratch/kocevski/931944/ft2_4FGL_J1501.0+2238_daily_bin99.fits sctable="SC_DATA" outfile=/scratch/kocevski/931944/ltcube_264988801_265248001_4FGL_J1501.0+2238_daily_bin99.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/931944/ft2_4FGL_J1501.0+2238_daily_bin99.fits
.....................!
real 12.79
user 12.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931944/ft1_filtered_4FGL_J1501.0+2238_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/931944/ft2_4FGL_J1501.0+2238_daily_bin99.fits sctable="SC_DATA" expcube=/scratch/kocevski/931944/ltcube_264988801_265248001_4FGL_J1501.0+2238_daily_bin99.fits outfile=/scratch/kocevski/931944/expmap_264988801_265248001_4FGL_J1501.0+2238_daily_bin99.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/931944/ltcube_264988801_265248001_4FGL_J1501.0+2238_daily_bin99.fits
.....................!
real 191.25
user 185.62
sys 5.29

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/931944/ft1_filtered_4FGL_J1501.0+2238_daily_bin99.fits scfile=/scratch/kocevski/931944/ft2_4FGL_J1501.0+2238_daily_bin99.fits outfile=/scratch/kocevski/931944/cmap_264988801_265248001_4FGL_J1501.0+2238_daily_bin99.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931944/ft1_filtered_4FGL_J1501.0+2238_daily_bin99.fits scfile=/scratch/kocevski/931944/ft2_4FGL_J1501.0+2238_daily_bin99.fits outfile=/scratch/kocevski/931944/cmap_HighResolution_264988801_265248001_4FGL_J1501.0+2238_daily_bin99.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.065       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32576E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .18990E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7995       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4862       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.271       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1467       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.258       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.720       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6206       1.0000         .10000E-03   10000.    
    15 'norm      '    12.004       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.873       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.216       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .87935       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0532       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0713       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=   12250.39     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2382 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5119        .57728E-07** at limit **
   2  norm          11.065        2.8403       -.12842E-07   -.87100E-04
   3  Prefactor     .10000E-03    2.8725        .60723E-06** at limit **
   4  norm          .10000E-03    .74670        .37750E-07** at limit **
   5  norm          3.7994        3.1782        .13213E-06   -.20916E-04
   6  Prefactor     4.4603        26.758       -.33017E-05   -.83926E-04
   7  Prefactor     14.275        17.017       -.64432E-07   -.37102E-04
   8  Prefactor     6.1474        13.321        .43614E-07   -.34736E-04
   9  Prefactor     2.6208        13.794        .69134E-06   -.15239E-04
  10  Prefactor     .10000E-03    12.017       -.78096E-07** at limit **
  11  Prefactor     12.258        6.2233        .13568E-07   -.25867E-04
  12  norm          .10000E-03    11.513        .35210E-06** at limit **
  13  Prefactor     43.719        28.696       -.15823E-07   -.27213E-04
  14  Prefactor     1.6200        5.6678        .17532E-05   -.21792E-04
  15  norm          12.004        1.7283       -.43561E-07   -.13026E-03
  16  Prefactor     28.862        25.445       -.67216E-06   -.10356E-03
  17  Prefactor     .10000E-03    12.118       -.30079E-06** at limit **
  18  Prefactor     12.216        14.655       -.12648E-06   -.10470E-04
  19  Prefactor     .87937        1.7784        .89460E-06   -.10720E-04
  20  Prefactor     .10000E-03    42.194        .66738E-06** at limit **
  21  Normalizat    1.0534        .16513        .44775E-06   -.26666E-03
  22  Prefactor     1.0712        .11370       -.84216E-06   -.17752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.065
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 3.79944
  Prefactor  = 4.4603
  Prefactor  = 14.2754
  Prefactor  = 6.14736
  Prefactor  = 2.62079
  Prefactor  = 0.0001
  Prefactor  = 12.2583
  norm       = 0.0001
  Prefactor  = 43.7186
  Prefactor  = 1.61996
  norm       = 12.0042
  Prefactor  = 28.8615
  Prefactor  = 0.0001
  Prefactor  = 12.2156
  Prefactor  = 0.879368
  Prefactor  = 0.0001
  Normalizat = 1.05341
  Prefactor  = 1.0712
 **********
 **   18 **HESSE 
 **********

 FCN=   12250.39     FROM HESSE     STATUS=OK           352 CALLS     2734 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.065        2.8408        .91373E-04   -1.5043    
   3  Prefactor     .10000E-03    7.9947        .35133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.5913        .18395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7994        3.1781        .17444E-03   -1.5318    
   6  Prefactor     4.4603        28.457        .19010E-03   -1.5286    
   7  Prefactor     14.275        16.954        .10603E-03   -1.4952    
   8  Prefactor     6.1474        13.282        .16193E-03   -1.5212    
   9  Prefactor     2.6208        13.702        .25203E-03   -1.5384    
  10  Prefactor     .10000E-03    12.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.258        6.2231        .11441E-03   -1.5008    
  12  norm          .10000E-03    11.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.719        28.703        .60632E-04   -1.4385    
  14  Prefactor     1.6200        5.7010        .33246E-03   -1.5453    
  15  norm          12.004        1.7218        .52600E-04   -1.5015    
  16  Prefactor     28.862        25.657        .74560E-04   -1.4633    
  17  Prefactor     .10000E-03    12.454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.216        14.651        .11461E-03   -1.5009    
  19  Prefactor     .87937        1.7902        .20413E-03   -1.5520    
  20  Prefactor     .10000E-03    42.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0534        .18769        .31841E-03   -.91262    
  22  Prefactor     1.0712        .12970        .22392E-03   -.90393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61512e-10
Minuit parameter uncertainties:
  1  3.13101e-06
  2  2.84083
  3  0.000278661
  4  2.13189e-05
  5  3.17819
  6  22.5477
  7  16.9593
  8  13.2885
  9  11.9893
  10  4.19932e-06
  11  6.22342
  12  2.97779e-05
  13  28.7122
  14  5.7029
  15  1.72176
  16  25.6668
  17  1.67123e-05
  18  14.6549
  19  1.79031
  20  0.000119979
  21  0.187806
  22  0.129739
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.226e+01  6.223e+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:  1.071e+00  1.297e-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.053e+00  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.62
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.39e-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) = 12249.9507244
delta logL = 0.439186584321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12249.9111037
delta logL = 0.478807284453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.216       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6603       1.0000          .0000       10.000    
     3 'Normalizat'    1.0630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0693       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=   12249.91     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      245 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.219        178.57        .25669E-02   -.50065E-04
   2  Index         1.6602        2.9895        .21773        .46110E-04
   3  Normalizat    1.0629        .11010        .71675E-01    .52223E-04
   4  Prefactor     1.0693        .56680E-01    .38893E-01    .19497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2187
  Index      = 1.66017
  Normalizat = 1.06286
  Prefactor  = 1.06929
 **********
 **   18 **HESSE 
 **********

 FCN=   12249.91     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.219        7.8880        .10268E-03   -1.4928    
   2  Index         1.6602        .33593        .74738E-02   -.73147    
   3  Normalizat    1.0629        .18003        .31715E-03   -.90953    
   4  Prefactor     1.0693        .12842        .22410E-03   -.90454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5339e-12
Minuit parameter uncertainties:
  1  7.88855
  2  0.336393
  3  0.180137
  4  0.128458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931944': 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) = 12249.9111033
delta logL = 0.478807758171

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.522e+01  7.889e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.660e+00  3.364e-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.069e+00  1.285e-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.063e+00  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.54
Ra Dec: 225.257 22.636
Photon Index (Free Index): 1.66 +/- 0.34
Photon Flux (Free Index): 2.77e-08 +/- 1.85e-08
Energy Flux (Free Index): 5.13e-05 +/- 4.33e-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/931944/cmap_HighResolution_264988801_265248001_4FGL_J1501.0+2238_daily_bin99.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='5.13e-05', photon_flux_error='2.02e-08', dlogl='4.79e-01', energy_flux='2.74e-05', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-09-10 17:47:39.807473', photon_index_error2='0.34', photon_index2='1.66', ts='9.62', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='4.33e-05', EG='1.05', time_epoch_completed='1631321259.81', return_code='0', job_id='931944', GAL2='1.07', EG2='1.06', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='1.85e-08', ts2='10.54', photon_index='2.00' WHERE bin_id='99' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:47:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 931944: <4FGL_J1501.0+2238_daily_bin99> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin99 225.257 22.6364 264988801 265248001 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 :                                   779.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            976 sec.

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

