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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1417
RA = 225.257, Dec = 22.6364
tmin = 606614401, tmax = 606873601
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='938012', job_status='RUN', time_executed='2021-09-10 17:55:24.392923', time_epoch_executed='1631321724.39' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938012/ft1_4FGL_J1501.0+2238_daily_bin1417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938012/ft2_4FGL_J1501.0+2238_daily_bin1417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938012/ft1_4FGL_J1501.0+2238_daily_bin1417.fits outfile=/scratch/kocevski/938012/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1417.fits ra=225.257 dec=22.6364 rad=12.0 tmin=606614401.0 tmax=606873601.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 5.06
user 4.83
sys 0.21

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938012/ft1_filtered_4FGL_J1501.0+2238_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/938012/ft2_4FGL_J1501.0+2238_daily_bin1417.fits sctable="SC_DATA" expcube=/scratch/kocevski/938012/ltcube_606614401_606873601_4FGL_J1501.0+2238_daily_bin1417.fits outfile=/scratch/kocevski/938012/expmap_606614401_606873601_4FGL_J1501.0+2238_daily_bin1417.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/938012/ltcube_606614401_606873601_4FGL_J1501.0+2238_daily_bin1417.fits
.....................!
real 190.79
user 185.62
sys 4.76

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/938012/ft1_filtered_4FGL_J1501.0+2238_daily_bin1417.fits scfile=/scratch/kocevski/938012/ft2_4FGL_J1501.0+2238_daily_bin1417.fits outfile=/scratch/kocevski/938012/cmap_606614401_606873601_4FGL_J1501.0+2238_daily_bin1417.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938012/ft1_filtered_4FGL_J1501.0+2238_daily_bin1417.fits scfile=/scratch/kocevski/938012/ft2_4FGL_J1501.0+2238_daily_bin1417.fits outfile=/scratch/kocevski/938012/cmap_HighResolution_606614401_606873601_4FGL_J1501.0+2238_daily_bin1417.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/938012/ft1_filtered_4FGL_J1501.0+2238_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/938012/ft2_4FGL_J1501.0+2238_daily_bin1417.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938012/Model_4FGL_J1501.0+2238_daily_bin1417.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/938012/ft1_filtered_4FGL_J1501.0+2238_daily_bin1417.fits.....................!
real 50.69
user 49.23
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14802E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2736       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.4271       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10853E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.377       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    37.967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5408       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8041       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0497       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0852       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=   6620.710     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2043 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10044E-03    4.8941        .25331E-05** at limit **
   2  norm          3.2736        2.2880       -.88338E-08   -.13290E-04
   3  Prefactor     .10000E-03    2.5798        .68356E-07** at limit **
   4  norm          6.4268        3.4405       -.15807E-06   -.17923E-03
   5  norm          .10000E-03    1.5173        .15727E-07** at limit **
   6  Prefactor     .10000E-03    12.339        .12700E-05** at limit **
   7  Prefactor     .10000E-03    36.814       -.18879E-04** at limit **
   8  Prefactor     14.377        12.445       -.33491E-07   -.16730E-04
   9  Prefactor     .10000E-03    26.577        .13862E-04** at limit **
  10  Prefactor     .10000E-03    13.112       -.63574E-05** at limit **
  11  Prefactor     .10000E-03    6.6083        .14498E-06** at limit **
  12  norm          37.981        37.681        .17123E-04    .10939E-05
  13  Prefactor     .10000E-03    20.593       -.12565E-04** at limit **
  14  Prefactor     8.5406        9.5097       -.46221E-07   -.40232E-04
  15  norm          1.8024        1.2832       -.13180E-06    .32649E-03
  16  Prefactor     12.537        17.575       -.33100E-05   -.47002E-05
  17  Prefactor     .10000E-03    9.3286       -.54564E-05** at limit **
  18  Prefactor     .10000E-03    10.056        .60746E-05** at limit **
  19  Prefactor     .10000E-03    1.1818       -.11472E-06** at limit **
  20  Prefactor     .10000E-03    11.923        .49775E-05** at limit **
  21  Normalizat    1.0498        .19631        .13041E-05   -.65603E-05
  22  Prefactor     1.0851        .14050       -.18867E-06    .50551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100442
  norm       = 3.27363
  Prefactor  = 0.0001
  norm       = 6.42677
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.3771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.9814
  Prefactor  = 0.0001
  Prefactor  = 8.54064
  norm       = 1.80242
  Prefactor  = 12.5369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0498
  Prefactor  = 1.08507
 **********
 **   18 **HESSE 
 **********

 FCN=   6620.710     FROM HESSE     STATUS=OK           340 CALLS     2383 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10044E-03    27.882        .34450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2736        2.2873        .99962E-04   -1.5346    
   3  Prefactor     .10000E-03    2.6048        .12757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.4268        3.4401        .10591E-03   -1.5201    
   5  norm          .10000E-03    1.5223        .97871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.377        12.445        .10564E-03   -1.4949    
   9  Prefactor     .10000E-03    26.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.6770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          37.981        37.748        .65046E-04   -1.4475    
  13  Prefactor     .10000E-03    20.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5406        9.5123        .13717E-03   -1.5123    
  15  norm          1.8024        1.2736        .73662E-04   -1.5439    
  16  Prefactor     12.537        17.583        .11310E-03   -1.5000    
  17  Prefactor     .10000E-03    9.4122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2109        .17269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0498        .23057        .28586E-03   -.91380    
  22  Prefactor     1.0851        .16510        .20490E-03   -.89945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52117e-08
Minuit parameter uncertainties:
  1  0.00702465
  2  2.28739
  3  9.7033e-06
  4  3.44025
  5  1.33759e-06
  6  6.98058e-06
  7  0.000326948
  8  12.4477
  9  7.58151e-05
  10  6.21348e-06
  11  8.02607e-06
  12  37.7714
  13  1.82094e-06
  14  9.51397
  15  1.27366
  16  17.5907
  17  3.65063e-05
  18  1.84982e-06
  19  8.26042e-07
  20  5.42389e-06
  21  0.230795
  22  0.165181
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  8.026e-06  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.085e+00  1.652e-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.050e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/938012/likelihoodResults_606614401_606873601_4FGL_J1501.0+2238_daily_bin1417.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6620.71093546
delta logL = -0.000713917889698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6620.71022143
delta logL = 1.11184817797e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0324       1.0000          .0000       10.000    
     3 'Normalizat'    1.0498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0851       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=   6620.710     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    277.39        .18142E-02** at limit **
   2  Index         2.0659        5.1550        .50000       -.42873E-04
   3  Normalizat    1.0498        .31710E-01    .28586E-03    .75086E-04
   4  Prefactor     1.0851        .23205E-01    .20490E-03   -.24333E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6620.710     FROM SIMPLEX   STATUS=UNCHANGED    155 CALLS      395 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    277.39        .41532E-03** at limit **
   2  Index         2.0659        5.1550        .87037E-05   -.42873E-04
   3  Normalizat    1.0498        .31710E-01    .21767E-06    .75086E-04
   4  Prefactor     1.0851        .23205E-01    .11248E-06   -.24333E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6619.639     FROM MIGRAD    STATUS=CONVERGED    132 CALLS      527 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19686E-01    .53335        .18576E-02    .78530E-02
   2  Index         4.9533        2.8733        .97949E-01   -.59485E-04
   3  Normalizat    .95047        .18858        .11434E-03    .13520E-03
   4  Prefactor     1.1235        .98273E-01    .40980E-04    .49824E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0196863
  Index      = 4.95326
  Normalizat = 0.950465
  Prefactor  = 1.12348
 **********
 **   18 **HESSE 
 **********

 FCN=   6619.639     FROM HESSE     STATUS=OK            31 CALLS      558 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19686E-01    .10173        .84439E-04   -1.5736    
   2  Index         4.9533        1.6704        .34761E-02   -.93475E-02
   3  Normalizat    .95047        .23270        .22869E-04   -.94709    
   4  Prefactor     1.1235        .16595        .81960E-05   -.88720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99092e-10
Minuit parameter uncertainties:
  1  0.0892752
  2  1.70319
  3  0.232949
  4  0.166031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938012': 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) = 6619.63865111
delta logL = 1.07157042911

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.969e-02  8.928e-02  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  4.953e+00  1.703e+00  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.123e+00  1.660e-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:  9.505e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 225.257 22.636
Photon Index (Free Index): 4.95 +/- 1.70
Photon Flux (Free Index): 8.25e-08 +/- 7.37e-07
Energy Flux (Free Index): 1.10e-05 +/- 9.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/938012/cmap_HighResolution_606614401_606873601_4FGL_J1501.0+2238_daily_bin1417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', comment='SUCCESS', energy_flux2='1.10e-05', dlogl='1.07e+00', photon_flux2='8.25e-08', job_status='DONE', time_completed='2021-09-10 18:05:51.438286', photon_index_error2='1.70', photon_index2='4.95', ts='-0.00', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='6.23e-08', energy_flux_error2='9.71e-05', EG='1.05', time_epoch_completed='1631322351.44', return_code='0', job_id='938012', GAL2='1.12', EG2='0.95', return_code2='0', photon_flux_error2='7.37e-07', ts2='2.31', photon_index='2.00' WHERE bin_id='1417' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:05:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 938012: <4FGL_J1501.0+2238_daily_bin1417> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1417 225.257 22.6364 606614401 606873601 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 :                                   616.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             251.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            860 sec.

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

