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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin21
RA = 225.257, Dec = 22.6364
tmin = 244771201, tmax = 245030401
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='931815', job_status='RUN', time_executed='2021-09-10 17:34:02.804486', time_epoch_executed='1631320442.8' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931815/ft1_4FGL_J1501.0+2238_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931815/ft2_4FGL_J1501.0+2238_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931815/ft1_4FGL_J1501.0+2238_daily_bin21.fits outfile=/scratch/kocevski/931815/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin21.fits ra=225.257 dec=22.6364 rad=12.0 tmin=244771201.0 tmax=245030401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.44
user 1.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931815/ft1_filtered_4FGL_J1501.0+2238_daily_bin21.fits" evtable="EVENTS" scfile=/scratch/kocevski/931815/ft2_4FGL_J1501.0+2238_daily_bin21.fits sctable="SC_DATA" outfile=/scratch/kocevski/931815/ltcube_244771201_245030401_4FGL_J1501.0+2238_daily_bin21.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/931815/ft2_4FGL_J1501.0+2238_daily_bin21.fits
.....................!
real 12.91
user 12.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931815/ft1_filtered_4FGL_J1501.0+2238_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/931815/ft2_4FGL_J1501.0+2238_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/931815/ltcube_244771201_245030401_4FGL_J1501.0+2238_daily_bin21.fits outfile=/scratch/kocevski/931815/expmap_244771201_245030401_4FGL_J1501.0+2238_daily_bin21.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/931815/ltcube_244771201_245030401_4FGL_J1501.0+2238_daily_bin21.fits
.....................!
real 191.14
user 185.62
sys 5.11

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/931815/ft1_filtered_4FGL_J1501.0+2238_daily_bin21.fits scfile=/scratch/kocevski/931815/ft2_4FGL_J1501.0+2238_daily_bin21.fits outfile=/scratch/kocevski/931815/cmap_244771201_245030401_4FGL_J1501.0+2238_daily_bin21.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931815/ft1_filtered_4FGL_J1501.0+2238_daily_bin21.fits scfile=/scratch/kocevski/931815/ft2_4FGL_J1501.0+2238_daily_bin21.fits outfile=/scratch/kocevski/931815/cmap_HighResolution_244771201_245030401_4FGL_J1501.0+2238_daily_bin21.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.610       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.492       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.376       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.615       1.0000         .10000E-03   10000.    
    12 'norm      '    .10419E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3133       1.0000         .10000E-03   10000.    
    15 'norm      '    7.8791       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7180       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.863       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0716       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1079       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=   7763.508     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2331 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.774       -.10031E-05** at limit **
   2  norm          1.6300        1.6247        .97843E-08    .55098E-04
   3  Prefactor     13.604        8.0782       -.21134E-07    .44512E-04
   4  norm          .10000E-03    1.3440        .82511E-07** at limit **
   5  norm          .10000E-03    2.2460        .10692E-06** at limit **
   6  Prefactor     .10000E-03    12.301       -.40913E-06** at limit **
   7  Prefactor     .10000E-03    23.581        .66285E-06** at limit **
   8  Prefactor     .10000E-03    7.5814       -.42168E-07** at limit **
   9  Prefactor     10.493        27.284        .16408E-05    .47980E-06
  10  Prefactor     30.354        39.656       -.38398E-05   -.18701E-03
  11  Prefactor     15.615        10.440       -.63609E-08   -.10594E-04
  12  norm          .10000E-03    55.150        .61900E-07** at limit **
  13  Prefactor     .10000E-03    16.569       -.33977E-06** at limit **
  14  Prefactor     5.3138        6.1431        .19315E-05   -.42940E-03
  15  norm          7.8800        1.8329       -.90922E-08   -.62872E-04
  16  Prefactor     5.7166        31.099       -.63823E-07   -.12724E-04
  17  Prefactor     .10000E-03    6.9287        .54529E-07** at limit **
  18  Prefactor     .10000E-03    14.399        .11416E-05** at limit **
  19  Prefactor     .10000E-03    1.3937        .12345E-08** at limit **
  20  Prefactor     14.865        27.896        .23294E-06    .76395E-05
  21  Normalizat    1.0717        .20041       -.30212E-06   -.83879E-06
  22  Prefactor     1.1077        .13864        .52773E-07   -.19484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.63003
  Prefactor  = 13.6042
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4931
  Prefactor  = 30.3539
  Prefactor  = 15.615
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.31379
  norm       = 7.87997
  Prefactor  = 5.71656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8648
  Normalizat = 1.07171
  Prefactor  = 1.10775
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.508     FROM HESSE     STATUS=OK           340 CALLS     2671 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6300        1.6349        .10911E-03   -1.5453    
   3  Prefactor     13.604        8.0728        .10857E-03   -1.4970    
   4  norm          .10000E-03    1.3717        .99697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.2974        .12893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.6031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.493        27.393        .12369E-03   -1.5060    
  10  Prefactor     30.354        42.186        .72697E-04   -1.4606    
  11  Prefactor     15.615        10.445        .10136E-03   -1.4917    
  12  norm          .10000E-03    55.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3138        6.4265        .87180E-03   -1.5247    
  15  norm          7.8800        1.8372        .54774E-04   -1.5146    
  16  Prefactor     5.7166        31.146        .16797E-03   -1.5230    
  17  Prefactor     .10000E-03    6.9651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4323        .20302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.865        27.915        .10389E-03   -1.4937    
  21  Normalizat    1.0717        .23512        .30509E-03   -.90665    
  22  Prefactor     1.1077        .16273        .21310E-03   -.89219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78475e-10
Minuit parameter uncertainties:
  1  6.91846e-05
  2  1.63495
  3  8.07346
  4  1.33244e-06
  5  2.37306e-06
  6  3.96109e-05
  7  6.02782e-05
  8  1.28129e-05
  9  27.4255
  10  42.2276
  11  10.4458
  12  3.08194e-05
  13  3.55918e-05
  14  6.42729
  15  1.83726
  16  26.7082
  17  5.1808e-07
  18  0.000114322
  19  1.5611e-06
  20  27.9399
  21  0.235351
  22  0.162803
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.562e+01  1.045e+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:  1.108e+00  1.628e-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.072e+00  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.39
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.07e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 3.49e-05 +/- 2.33e-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) = 7763.20012711
delta logL = 0.307636790525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7763.18284044
delta logL = 0.324923456781

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0870       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4493       1.0000          .0000       10.000    
     3 'Normalizat'    1.0441       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1186       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=   7763.183     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      248 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0732        91.440        .33239E-02    .17804E-03
   2  Index         2.4499        2.3347        .12951        .17324E-03
   3  Normalizat    1.0440        .72850E-01    .69724E-01    .19069E-04
   4  Prefactor     1.1186        .47069E-01    .36921E-01    .31788E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.0732
  Index      = 2.44986
  Normalizat = 1.04401
  Prefactor  = 1.11857
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.183     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0732        13.115        .13296E-03   -1.5105    
   2  Index         2.4499        .72920        .44453E-02   -.53522    
   3  Normalizat    1.0440        .22930        .30849E-03   -.91570    
   4  Prefactor     1.1186        .16201        .21215E-03   -.88875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23584e-11
Minuit parameter uncertainties:
  1  13.1196
  2  0.732738
  3  0.229517
  4  0.162086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931815': 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) = 7763.18283947
delta logL = 0.324924421893

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  9.073e+00  1.312e+01  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.450e+00  7.327e-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.119e+00  1.621e-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.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 225.257 22.636
Photon Index (Free Index): 2.45 +/- 0.73
Photon Flux (Free Index): 7.44e-08 +/- 4.88e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.91e-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/931815/cmap_HighResolution_244771201_245030401_4FGL_J1501.0+2238_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.07e-08', energy_flux2='2.29e-05', photon_flux_error='3.39e-08', dlogl='3.25e-01', energy_flux='3.49e-05', photon_flux2='7.44e-08', job_status='DONE', time_completed='2021-09-10 17:43:59.728193', photon_index_error2='0.73', photon_index2='2.45', ts='4.39', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='1.07', time_epoch_completed='1631321039.73', return_code='0', job_id='931815', GAL2='1.12', EG2='1.04', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='4.88e-08', ts2='5.03', photon_index='2.00' WHERE bin_id='21' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:43:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 931815: <4FGL_J1501.0+2238_daily_bin21> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin21 225.257 22.6364 244771201 245030401 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 :                                   598.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            768 sec.

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

