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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1071
RA = 225.257, Dec = 22.6364
tmin = 516931201, tmax = 517190401
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='936600', job_status='RUN', time_executed='2021-09-10 17:49:55.052534', time_epoch_executed='1631321395.05' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936600/ft1_4FGL_J1501.0+2238_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936600/ft2_4FGL_J1501.0+2238_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936600/ft1_4FGL_J1501.0+2238_daily_bin1071.fits outfile=/scratch/kocevski/936600/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1071.fits ra=225.257 dec=22.6364 rad=12.0 tmin=516931201.0 tmax=517190401.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.93
user 3.66
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936600/ft1_filtered_4FGL_J1501.0+2238_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/936600/ft2_4FGL_J1501.0+2238_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/936600/ltcube_516931201_517190401_4FGL_J1501.0+2238_daily_bin1071.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/936600/ft2_4FGL_J1501.0+2238_daily_bin1071.fits
.....................!
real 11.76
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936600/ft1_filtered_4FGL_J1501.0+2238_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/936600/ft2_4FGL_J1501.0+2238_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/936600/ltcube_516931201_517190401_4FGL_J1501.0+2238_daily_bin1071.fits outfile=/scratch/kocevski/936600/expmap_516931201_517190401_4FGL_J1501.0+2238_daily_bin1071.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/936600/ltcube_516931201_517190401_4FGL_J1501.0+2238_daily_bin1071.fits
.....................!
real 190.95
user 184.84
sys 5.58

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/936600/ft1_filtered_4FGL_J1501.0+2238_daily_bin1071.fits scfile=/scratch/kocevski/936600/ft2_4FGL_J1501.0+2238_daily_bin1071.fits outfile=/scratch/kocevski/936600/cmap_516931201_517190401_4FGL_J1501.0+2238_daily_bin1071.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.56
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.678       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9625       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.0409       1.0000         .10000E-03   10000.    
     5 'norm      '    8.2424       1.0000         .10000E-03   10000.    
     6 'Prefactor '    79.650       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .70805E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.368       1.0000         .10000E-03   10000.    
    12 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3805       1.0000         .10000E-03   10000.    
    15 'norm      '    .15156       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.880       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4817       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0719       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91734       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=   6710.478     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     3074 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.677        10.577        .98072E-04   -.87173E-04
   2  norm          3.9623        3.7416        .73033E-03    .11155E-03
   3  Prefactor     .10000E-03    4.7679        .17382E-02** at limit **
   4  norm          4.0407        2.7273        .10711E-03   -.13363E-03
   5  norm          8.2415        5.9655        .13964E-03   -.65863E-04
   6  Prefactor     79.643        42.774        .45000E-04   -.34207E-04
   7  Prefactor     .10000E-03    20.837        .96816E-01** at limit **
   8  Prefactor     .10000E-03    20.725        .18142E-02** at limit **
   9  Prefactor     .10000E-03    17.583        .18142E-02** at limit **
  10  Prefactor     .10000E-03    30.382        .18142E-02** at limit **
  11  Prefactor     12.368        11.948        .11390E-03   -.52001E-04
  12  norm          .10000E-03    31.703        .18142E-02** at limit **
  13  Prefactor     .10000E-03    13.810        .18142E-02** at limit **
  14  Prefactor     4.3801        9.4553        .19243E-03   -.11993E-04
  15  norm          .14805        3.5821        .12760E-02    .32881E-03
  16  Prefactor     .10000E-03    22.136        .18142E-02** at limit **
  17  Prefactor     18.897        12.026        .92177E-04   -.23557E-04
  18  Prefactor     .10000E-03    11.871        .18142E-02** at limit **
  19  Prefactor     1.4815        2.7780        .17878E-03    .40952E-04
  20  Prefactor     .10000E-03    14.160        .18142E-02** at limit **
  21  Normalizat    1.0721        .24381        .29171E-03   -.32624E-03
  22  Prefactor     .91726        .16227        .21418E-03   -.13668E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6772
  norm       = 3.96226
  Prefactor  = 0.0001
  norm       = 4.04072
  norm       = 8.2415
  Prefactor  = 79.643
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3681
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.38007
  norm       = 0.148048
  Prefactor  = 0.0001
  Prefactor  = 18.8971
  Prefactor  = 0.0001
  Prefactor  = 1.48145
  Prefactor  = 0.0001
  Normalizat = 1.07206
  Prefactor  = 0.917263
 **********
 **   18 **HESSE 
 **********

 FCN=   6710.478     FROM HESSE     STATUS=OK           334 CALLS     3408 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.677        10.577        .39229E-05   -1.4891    
   2  norm          3.9623        3.7405        .29213E-04   -1.5310    
   3  Prefactor     .10000E-03    4.7693        .34763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.0407        2.7272        .42844E-05   -1.5306    
   5  norm          8.2415        5.9650        .55857E-05   -1.5134    
   6  Prefactor     79.643        42.777        .90000E-05   -1.3921    
   7  Prefactor     .10000E-03    18.375        .10643       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.585        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.368        11.947        .45561E-05   -1.5004    
  12  norm          .10000E-03    31.707        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.810        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3801        9.4544        .76974E-05   -1.5289    
  15  norm          .14805        3.3668        .51040E-04   -1.5631    
  16  Prefactor     .10000E-03    22.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.897        11.670        .36871E-05   -1.4838    
  18  Prefactor     .10000E-03    11.871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4815        2.7776        .71512E-05   -1.5465    
  20  Prefactor     .10000E-03    14.160        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0721        .24396        .58341E-04   -.90654    
  22  Prefactor     .91726        .16240        .85670E-05   -.95540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57639e-10
Minuit parameter uncertainties:
  1  10.578
  2  3.74073
  3  2.42216e-05
  4  2.7273
  5  5.96547
  6  42.793
  7  0.000283972
  8  5.77177e-05
  9  3.43694e-06
  10  9.98159e-05
  11  11.9496
  12  5.38706e-05
  13  3.7837e-05
  14  9.45762
  15  1.41164
  16  7.66193e-05
  17  11.6712
  18  6.60408e-06
  19  2.77787
  20  4.33517e-05
  21  0.244213
  22  0.162487
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.237e+01  1.195e+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:  9.173e-01  1.625e-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.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 2.67e-05

TS (Fixed Index): 1.47
Ra Dec: 225.257 22.636
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936600/likelihoodResults_516931201_517190401_4FGL_J1501.0+2238_daily_bin1071.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) = 6709.08461497
delta logL = 1.39385516118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6708.98919364
delta logL = 1.48927649806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36551       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0973       1.0000          .0000       10.000    
     3 'Normalizat'    .91303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99106       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=   6708.989     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      278 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36523        2.3748        .54922E-02    .13893E-02
   2  Index         4.0978        1.7210        .72481E-01    .24062E-03
   3  Normalizat    .91289        .58912E-01    .70712E-01    .22732E-04
   4  Prefactor     .99110        .40094E-01    .46155E-01    .10181E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.365227
  Index      = 4.09779
  Normalizat = 0.912893
  Prefactor  = 0.991098
 **********
 **   18 **HESSE 
 **********

 FCN=   6708.989     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      311 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36523        4.5144        .24670E-04   -1.5587    
   2  Index         4.0978        2.6478        .28595E-02   -.18143    
   3  Normalizat    .91289        .21739        .31287E-03   -.96009    
   4  Prefactor     .99110        .14731        .20681E-03   -.93027    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.16295e-07
Minuit parameter uncertainties:
  1  2.56798
  2  2.79603
  3  0.217595
  4  0.147372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936600': 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) = 6708.98919322
delta logL = 1.48927691609

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.652e-01  2.568e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  4.098e+00  2.796e+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:  9.911e-01  1.474e-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.129e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.79
Ra Dec: 225.257 22.636
Photon Index (Free Index): 4.10 +/- 2.80
Photon Flux (Free Index): 1.64e-07 +/- 9.01e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/936600/cmap_HighResolution_516931201_517190401_4FGL_J1501.0+2238_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-03', comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='2.42e-05', photon_flux_error='3.88e-08', dlogl='1.49e+00', energy_flux='2.76e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-10 18:03:28.046470', photon_index_error2='2.80', photon_index2='4.10', ts='1.47', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.42e-05', EG='1.07', time_epoch_completed='1631322208.05', return_code='0', job_id='936600', GAL2='0.99', EG2='0.91', return_code2='102', energy_flux_error='2.67e-05', photon_flux_error2='9.01e-08', ts2='4.79', photon_index='2.00' WHERE bin_id='1071' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:03:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 936600: <4FGL_J1501.0+2238_daily_bin1071> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1071> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep 10 17:46:53 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:46:54 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:46:54 2021
Terminated at Fri Sep 10 18:03:28 2021
Results reported at Fri Sep 10 18:03:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1071 225.257 22.6364 516931201 517190401 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 :                                   665.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            995 sec.

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

