/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 4 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 = 7387
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1501.0+2238_daily_bin428
RA = 225.257, Dec = 22.6364
tmin = 350265601, tmax = 350524801
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='933394', job_status='RUN', time_executed='2021-09-10 17:36:28.901716', time_epoch_executed='1631320588.9' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933394/ft1_4FGL_J1501.0+2238_daily_bin428.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933394/ft2_4FGL_J1501.0+2238_daily_bin428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933394/ft1_4FGL_J1501.0+2238_daily_bin428.fits outfile=/scratch/kocevski/933394/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin428.fits ra=225.257 dec=22.6364 rad=12.0 tmin=350265601.0 tmax=350524801.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.32
user 3.08
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933394/ft2_4FGL_J1501.0+2238_daily_bin428.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/933394/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin428.fits evtable="EVENTS" outfile="/scratch/kocevski/933394/ft1_filtered_4FGL_J1501.0+2238_daily_bin428.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933394/ft1_filtered_4FGL_J1501.0+2238_daily_bin428.fits" evtable="EVENTS" scfile=/scratch/kocevski/933394/ft2_4FGL_J1501.0+2238_daily_bin428.fits sctable="SC_DATA" outfile=/scratch/kocevski/933394/ltcube_350265601_350524801_4FGL_J1501.0+2238_daily_bin428.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/933394/ft2_4FGL_J1501.0+2238_daily_bin428.fits
.....................!
real 11.66
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933394/ft1_filtered_4FGL_J1501.0+2238_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/933394/ft2_4FGL_J1501.0+2238_daily_bin428.fits sctable="SC_DATA" expcube=/scratch/kocevski/933394/ltcube_350265601_350524801_4FGL_J1501.0+2238_daily_bin428.fits outfile=/scratch/kocevski/933394/expmap_350265601_350524801_4FGL_J1501.0+2238_daily_bin428.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/933394/ltcube_350265601_350524801_4FGL_J1501.0+2238_daily_bin428.fits
.....................!
real 189.10
user 184.93
sys 3.80

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/933394/ft1_filtered_4FGL_J1501.0+2238_daily_bin428.fits scfile=/scratch/kocevski/933394/ft2_4FGL_J1501.0+2238_daily_bin428.fits outfile=/scratch/kocevski/933394/cmap_350265601_350524801_4FGL_J1501.0+2238_daily_bin428.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933394/ft1_filtered_4FGL_J1501.0+2238_daily_bin428.fits scfile=/scratch/kocevski/933394/ft2_4FGL_J1501.0+2238_daily_bin428.fits outfile=/scratch/kocevski/933394/cmap_HighResolution_350265601_350524801_4FGL_J1501.0+2238_daily_bin428.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6647       1.0000         .10000E-03   10000.    
     2 'norm      '    11.417       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2487       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8526       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.852       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9670       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5404       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7925       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.993       1.0000         .10000E-03   10000.    
    15 'norm      '    12.158       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.539       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.171       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0856       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0358       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=   7264.410     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2015 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6672        6.7751        .52751E-02   -.39804E-03
   2  norm          11.418        3.6463        .29640E-02   -.20570E-03
   3  Prefactor     1.2475        4.4466        .10010E-01    .14462E-02
   4  norm          .10000E-03    .74936        .90712E-02** at limit **
   5  norm          2.8526        2.8292        .60180E-02    .49501E-04
   6  Prefactor     16.851        28.661        .24391E-02    .14615E-03
   7  Prefactor     3.9688        29.276        .50629E-02    .40927E-03
   8  Prefactor     .10000E-03    10.213        .90712E-02** at limit **
   9  Prefactor     9.5495        22.457        .32436E-02   -.69185E-03
  10  Prefactor     .10000E-03    70.632        .90712E-02** at limit **
  11  Prefactor     3.7923        4.9235        .51820E-02   -.14941E-02
  12  norm          .10003E-03    14.451        .90712E-02** at limit **
  13  Prefactor     .10000E-03    34.458        .90712E-02** at limit **
  14  Prefactor     13.993        8.4126        .26769E-02    .19498E-03
  15  norm          12.158        2.2022        .28721E-02    .49707E-03
  16  Prefactor     11.539        34.262        .29484E-02   -.15403E-03
  17  Prefactor     10.170        8.9942        .31410E-02    .10842E-02
  18  Prefactor     .10003E-03    14.285        .90712E-02** at limit **
  19  Prefactor     .10000E-03    1.2406        .90712E-02** at limit **
  20  Prefactor     .10000E-03    7.4335        .90712E-02** at limit **
  21  Normalizat    1.0853        .19891        .66860E-01    .11721E-03
  22  Prefactor     1.0360        .13757        .40825E-01    .14297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.66717
  norm       = 11.4176
  Prefactor  = 1.24745
  norm       = 0.0001
  norm       = 2.85261
  Prefactor  = 16.8512
  Prefactor  = 3.96876
  Prefactor  = 0.000100001
  Prefactor  = 9.54954
  Prefactor  = 0.000100001
  Prefactor  = 3.79228
  norm       = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 13.9926
  norm       = 12.1583
  Prefactor  = 11.5391
  Prefactor  = 10.1704
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08529
  Prefactor  = 1.03603
 **********
 **   18 **HESSE 
 **********

 FCN=   7264.410     FROM HESSE     STATUS=OK           340 CALLS     2355 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6672        6.7221        .21100E-03   -1.5325    
   2  norm          11.418        3.6483        .88969E-04   -1.5032    
   3  Prefactor     1.2475        4.3801        .32018E-03   -1.5485    
   4  norm          .10000E-03    .75375        .72035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8526        2.8304        .13886E-03   -1.5370    
   6  Prefactor     16.851        28.872        .97565E-04   -1.4887    
   7  Prefactor     3.9688        28.872        .20251E-03   -1.5310    
   8  Prefactor     .10000E-03    10.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5495        22.311        .12974E-03   -1.5090    
  10  Prefactor     .10000E-03    71.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7923        4.9165        .20728E-03   -1.5318    
  12  norm          .10003E-03    14.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.993        8.4132        .10707E-03   -1.4960    
  15  norm          12.158        2.2096        .49220E-04   -1.5010    
  16  Prefactor     11.539        34.286        .11794E-03   -1.5028    
  17  Prefactor     10.170        9.0081        .62820E-03   -1.5070    
  18  Prefactor     .10003E-03    14.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2735        .18531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0853        .23374        .29579E-03   -.90226    
  22  Prefactor     1.0360        .16157        .21578E-03   -.91538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23822e-08
Minuit parameter uncertainties:
  1  6.72346
  2  3.6484
  3  4.38119
  4  3.88236e-06
  5  2.83057
  6  28.8957
  7  21.4231
  8  0.000159767
  9  22.3304
  10  0.000585032
  11  4.91703
  12  0.00126275
  13  0.000122742
  14  8.41394
  15  2.20966
  16  34.3446
  17  9.00932
  18  0.00133433
  19  1.05143e-05
  20  2.35593e-05
  21  0.233959
  22  0.161647
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.792e+00  4.917e+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.036e+00  1.616e-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.085e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.23e-08 +/- 1.59e-08
Energy Flux (Fixed Index): 8.47e-06 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/933394/likelihoodResults_350265601_350524801_4FGL_J1501.0+2238_daily_bin428.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7264.38995633
delta logL = 0.0204980931194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7264.38628426
delta logL = 0.0241701642326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2517       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8095       1.0000          .0000       10.000    
     3 'Normalizat'    1.0876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0355       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=   7264.386     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2531        209.42        .48852E-02    .87948E-04
   2  Index         1.8095        5.3711        .27016        .24920E-04
   3  Normalizat    1.0876        .84500E-01    .66797E-01    .14858E-04
   4  Prefactor     1.0355        .48869E-01    .40846E-01    .30024E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.25309
  Index      = 1.80953
  Normalizat = 1.08759
  Prefactor  = 1.0355
 **********
 **   18 **HESSE 
 **********

 FCN=   7264.386     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2531        5.7460        .19541E-03   -1.5295    
   2  Index         1.8095        .85711        .11816E-01   -.69202    
   3  Normalizat    1.0876        .22190        .29551E-03   -.90151    
   4  Prefactor     1.0355        .15953        .21583E-03   -.91555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05907e-10
Minuit parameter uncertainties:
  1  5.7467
  2  0.864357
  3  0.222086
  4  0.159599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933394': 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) = 7264.38628422
delta logL = 0.0241702070007

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  4.253e+00  5.747e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.810e+00  8.644e-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.035e+00  1.596e-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.088e+00  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 225.257 22.636
Photon Index (Free Index): 1.81 +/- 0.86
Photon Flux (Free Index): 9.77e-09 +/- 1.66e-08
Energy Flux (Free Index): 1.14e-05 +/- 2.25e-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/933394/cmap_HighResolution_350265601_350524801_4FGL_J1501.0+2238_daily_bin428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', comment='SUCCESS', photon_flux='1.23e-08', energy_flux2='1.14e-05', photon_flux_error='1.59e-08', dlogl='2.42e-02', energy_flux='8.47e-06', photon_flux2='9.77e-09', job_status='DONE', time_completed='2021-09-10 17:46:57.401688', photon_index_error2='0.86', photon_index2='1.81', ts='1.15', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='6.15e-08', energy_flux_error2='2.25e-05', EG='1.09', time_epoch_completed='1631321217.4', return_code='0', job_id='933394', GAL2='1.04', EG2='1.09', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='1.66e-08', ts2='1.20', photon_index='2.00' WHERE bin_id='428' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:46:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 933394: <4FGL_J1501.0+2238_daily_bin428> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin428> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 17:36:15 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:36:16 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:36:16 2021
Terminated at Fri Sep 10 17:46:58 2021
Results reported at Fri Sep 10 17:46:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin428 225.257 22.6364 350265601 350524801 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 :                                   620.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            643 sec.

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

