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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1118
RA = 225.257, Dec = 22.6364
tmin = 529113601, tmax = 529372801
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='936654', job_status='RUN', time_executed='2021-09-10 17:49:22.049392', time_epoch_executed='1631321362.05' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936654/ft1_4FGL_J1501.0+2238_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936654/ft2_4FGL_J1501.0+2238_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936654/ft1_4FGL_J1501.0+2238_daily_bin1118.fits outfile=/scratch/kocevski/936654/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1118.fits ra=225.257 dec=22.6364 rad=12.0 tmin=529113601.0 tmax=529372801.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.91
user 3.62
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936654/ft2_4FGL_J1501.0+2238_daily_bin1118.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/936654/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1118.fits evtable="EVENTS" outfile="/scratch/kocevski/936654/ft1_filtered_4FGL_J1501.0+2238_daily_bin1118.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/936654/ft1_filtered_4FGL_J1501.0+2238_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/936654/ft2_4FGL_J1501.0+2238_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/936654/ltcube_529113601_529372801_4FGL_J1501.0+2238_daily_bin1118.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/936654/ft2_4FGL_J1501.0+2238_daily_bin1118.fits
.....................!
real 11.87
user 11.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936654/ft1_filtered_4FGL_J1501.0+2238_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/936654/ft2_4FGL_J1501.0+2238_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/936654/ltcube_529113601_529372801_4FGL_J1501.0+2238_daily_bin1118.fits outfile=/scratch/kocevski/936654/expmap_529113601_529372801_4FGL_J1501.0+2238_daily_bin1118.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/936654/ltcube_529113601_529372801_4FGL_J1501.0+2238_daily_bin1118.fits
.....................!
real 190.28
user 185.41
sys 4.50

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/936654/ft1_filtered_4FGL_J1501.0+2238_daily_bin1118.fits scfile=/scratch/kocevski/936654/ft2_4FGL_J1501.0+2238_daily_bin1118.fits outfile=/scratch/kocevski/936654/cmap_529113601_529372801_4FGL_J1501.0+2238_daily_bin1118.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.57
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.843       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7231       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.236       1.0000         .10000E-03   10000.    
     4 'norm      '    5.9403       1.0000         .10000E-03   10000.    
     5 'norm      '    16.615       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.673       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14881E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8496       1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.048       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8968       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .36610       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3734       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78341       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.

 FCN=   6632.912     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     2744 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.840        9.7153        .11641E-03   -.19337E-04
   2  norm          5.7230        3.0207        .99614E-04   -.63683E-04
   3  Prefactor     15.232        8.9352        .10261E-03   -.74342E-04
   4  norm          5.9399        3.0689        .98682E-04   -.13709E-03
   5  norm          16.612        6.6754        .98259E-04   -.24459E-03
   6  Prefactor     .10000E-03    8.8204        .18142E-02** at limit **
   7  Prefactor     .10000E-03    13.222        .18142E-02** at limit **
   8  Prefactor     .10000E-03    5.6820        .18142E-02** at limit **
   9  Prefactor     .10000E-03    6.6113        .18142E-02** at limit **
  10  Prefactor     21.634        22.685        .86038E-04   -.47437E-04
  11  Prefactor     .10056E-03    57.290        .35155E-02** at limit **
  12  norm          1.9182        122.44        .30657E-03    .22547E-04
  13  Prefactor     63.088        43.729        .50537E-04   -.12040E-03
  14  Prefactor     .10000E-03    2.5627        .12715E-02** at limit **
  15  norm          3.8936        1.4644        .57417E-04   -.11504E-03
  16  Prefactor     .10000E-03    29.130        .18142E-02** at limit **
  17  Prefactor     .10000E-03    16.059        .36285E-03** at limit **
  18  Prefactor     .10000E-03    13.414        .18142E-02** at limit **
  19  Prefactor     .10000E-03    1.1373        .16681E-03** at limit **
  20  Prefactor     .29037        29.192        .11328        .20447E-03
  21  Normalizat    1.3735        .23702        .26383E-03   -.56338E-03
  22  Prefactor     .78351        .16063        .23594E-03   -.74507E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8398
  norm       = 5.72302
  Prefactor  = 15.2315
  norm       = 5.93986
  norm       = 16.6123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.634
  Prefactor  = 0.000100561
  norm       = 1.91821
  Prefactor  = 63.0879
  Prefactor  = 0.0001
  norm       = 3.89356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.290365
  Normalizat = 1.37353
  Prefactor  = 0.783514
 **********
 **   18 **HESSE 
 **********

 FCN=   6632.912     FROM HESSE     STATUS=OK           330 CALLS     3074 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.840        9.7150        .46563E-05   -1.5020    
   2  norm          5.7230        3.0206        .39846E-05   -1.5229    
   3  Prefactor     15.232        8.9350        .41045E-05   -1.4927    
   4  norm          5.9399        3.0688        .39473E-05   -1.5220    
   5  norm          16.612        6.6753        .39304E-05   -1.4893    
   6  Prefactor     .10000E-03    8.8206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.224        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.634        22.686        .34415E-05   -1.4777    
  11  Prefactor     .10056E-03    58.415        .70310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9182        122.44        .12263E-04   -1.5431    
  13  Prefactor     63.088        43.730        .10107E-04   -1.4118    
  14  Prefactor     .10000E-03    2.5628        .25430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8936        1.4644        .22967E-05   -1.5313    
  16  Prefactor     .10000E-03    29.136        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.059        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1373        .33362E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .29037        27.402        .11822       -1.5600    
  21  Normalizat    1.3735        .23720        .52765E-04   -.81397    
  22  Prefactor     .78351        .16074        .47188E-04   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07705e-08
Minuit parameter uncertainties:
  1  9.71634
  2  3.0207
  3  8.9358
  4  3.06892
  5  6.6756
  6  1.52679e-05
  7  2.46637e-05
  8  9.11347e-06
  9  5.82338e-06
  10  22.6954
  11  0.0114654
  12  30.7153
  13  43.7519
  14  9.45235e-06
  15  1.46442
  16  0.000120409
  17  1.67497e-05
  18  1.93098e-05
  19  1.01253e-05
  20  5.64316
  21  0.237386
  22  0.160832
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.006e-04  1.147e-02  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:  7.835e-01  1.608e-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.374e+00  2.374e-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: 7.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936654/likelihoodResults_529113601_529372801_4FGL_J1501.0+2238_daily_bin1118.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) = 6632.91174968
delta logL = -8.18959706521e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6632.07924537
delta logL = 0.832422412167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23814       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8670       1.0000          .0000       10.000    
     3 'Normalizat'    1.3113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80202       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=   6632.079     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      290 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24167        3.4364        .75621E-02    .21858E-02
   2  Index         3.8623        2.2728        .90428E-01    .22290E-03
   3  Normalizat    1.3116        .47160E-01    .60774E-01    .92239E-05
   4  Prefactor     .80155        .32999E-01    .43744E-01    .12812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.241667
  Index      = 3.86232
  Normalizat = 1.31162
  Prefactor  = 0.80155
 **********
 **   18 **HESSE 
 **********

 FCN=   6632.079     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      325 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24167        9.1160        .34833E-03   -1.5610    
   2  Index         3.8623        4.0859        .45623E-02   -.22955    
   3  Normalizat    1.3116        .17497        .26879E-03   -.83220    
   4  Prefactor     .80155        .12187        .23334E-03   -.99671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08601e-10
Minuit parameter uncertainties:
  1  2.9684
  2  4.84841
  3  0.175048
  4  0.121909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936654': 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): 102
logL (Free Index) = 6632.07922891
delta logL = 0.832438868416

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.417e-01  2.968e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  3.862e+00  4.848e+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:  8.015e-01  1.219e-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.312e+00  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 225.257 22.636
Photon Index (Free Index): 3.86 +/- 4.85
Photon Flux (Free Index): 5.96e-08 +/- 4.95e-08
Energy Flux (Free Index): 9.14e-06 +/- 1.08e-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/936654/cmap_HighResolution_529113601_529372801_4FGL_J1501.0+2238_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', comment='SUCCESS', energy_flux2='9.14e-06', dlogl='8.32e-01', photon_flux2='5.96e-08', job_status='DONE', time_completed='2021-09-10 18:01:27.016666', photon_index_error2='4.85', photon_index2='3.86', ts='-0.00', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='7.54e-08', energy_flux_error2='1.08e-05', EG='1.37', time_epoch_completed='1631322087.02', return_code='0', job_id='936654', GAL2='0.80', EG2='1.31', return_code2='102', photon_flux_error2='4.95e-08', ts2='1.79', photon_index='2.00' WHERE bin_id='1118' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:01:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 936654: <4FGL_J1501.0+2238_daily_bin1118> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1118> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep 10 17:46:58 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:47:00 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:47:00 2021
Terminated at Fri Sep 10 18:01:27 2021
Results reported at Fri Sep 10 18:01:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1118 225.257 22.6364 529113601 529372801 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 :                                   663.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

