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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1582
RA = 225.257, Dec = 22.6364
tmin = 649382401, tmax = 649641601
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='939279', job_status='RUN', time_executed='2021-09-10 17:56:30.738278', time_epoch_executed='1631321790.74' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939279

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939279/ft1_4FGL_J1501.0+2238_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939279/ft2_4FGL_J1501.0+2238_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939279/ft1_4FGL_J1501.0+2238_daily_bin1582.fits outfile=/scratch/kocevski/939279/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1582.fits ra=225.257 dec=22.6364 rad=12.0 tmin=649382401.0 tmax=649641601.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 2.76
user 2.49
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939279/ft1_filtered_4FGL_J1501.0+2238_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/939279/ft2_4FGL_J1501.0+2238_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/939279/ltcube_649382401_649641601_4FGL_J1501.0+2238_daily_bin1582.fits outfile=/scratch/kocevski/939279/expmap_649382401_649641601_4FGL_J1501.0+2238_daily_bin1582.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/939279/ltcube_649382401_649641601_4FGL_J1501.0+2238_daily_bin1582.fits
.....................!
real 191.50
user 186.50
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/939279/ft1_filtered_4FGL_J1501.0+2238_daily_bin1582.fits scfile=/scratch/kocevski/939279/ft2_4FGL_J1501.0+2238_daily_bin1582.fits outfile=/scratch/kocevski/939279/cmap_649382401_649641601_4FGL_J1501.0+2238_daily_bin1582.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939279/ft1_filtered_4FGL_J1501.0+2238_daily_bin1582.fits scfile=/scratch/kocevski/939279/ft2_4FGL_J1501.0+2238_daily_bin1582.fits outfile=/scratch/kocevski/939279/cmap_HighResolution_649382401_649641601_4FGL_J1501.0+2238_daily_bin1582.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1095       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46578E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .77986       1.0000         .10000E-03   10000.    
     5 'norm      '    12.861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.284       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27351E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.1131       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0335       1.0000         .10000E-03   10000.    
    15 'norm      '    .10632E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.751       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.602       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.9568       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1657       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0480       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=   10419.69     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2774 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1112        4.4303       -.14799E-06   -.15069E-03
   2  norm          .10000E-03    .52444        .66491E-08** at limit **
   3  Prefactor     .10006E-03    2.4083       -.93647E-07** at limit **
   4  norm          .77917        1.7746        .72673E-06   -.15816E-03
   5  norm          12.861        4.5877        .27070E-06    .40843E-03
   6  Prefactor     .10000E-03    15.894        .11568E-05** at limit **
   7  Prefactor     11.285        20.815        .43065E-07    .51622E-05
   8  Prefactor     .10000E-03    4.7793        .21540E-07** at limit **
   9  Prefactor     .10003E-03    14.270       -.20132E-06** at limit **
  10  Prefactor     .10000E-03    17.342       -.13779E-05** at limit **
  11  Prefactor     .10000E-03    1.4949        .10857E-07** at limit **
  12  norm          7.1223        67.251        .30808E-05    .27792E-04
  13  Prefactor     .10000E-03    10.477       -.52629E-07** at limit **
  14  Prefactor     2.0326        6.2717        .10336E-05   -.89019E-04
  15  norm          .10000E-03    .42307       -.15152E-07** at limit **
  16  Prefactor     42.746        29.189       -.33403E-06   -.59508E-04
  17  Prefactor     21.612        9.1519        .67856E-07   -.43498E-04
  18  Prefactor     .10000E-03    27.130        .46027E-06** at limit **
  19  Prefactor     .10000E-03    .48467       -.16835E-08** at limit **
  20  Prefactor     8.9587        22.145        .24542E-05   -.64638E-04
  21  Normalizat    1.1654        .16174       -.13172E-06   -.57859E-04
  22  Prefactor     1.0483        .11448       -.34207E-06   -.29504E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.11121
  norm       = 0.0001
  Prefactor  = 0.000100058
  norm       = 0.779166
  norm       = 12.8615
  Prefactor  = 0.0001
  Prefactor  = 11.2846
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.12233
  Prefactor  = 0.0001
  Prefactor  = 2.03258
  norm       = 0.0001
  Prefactor  = 42.7459
  Prefactor  = 21.6116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.95867
  Normalizat = 1.16541
  Prefactor  = 1.04829
 **********
 **   18 **HESSE 
 **********

 FCN=   10419.69     FROM HESSE     STATUS=OK           358 CALLS     3132 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1112        4.4582        .19886E-03   -1.5302    
   2  norm          .10000E-03    .52783        .72180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10006E-03    2.3891        .51364E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .77917        1.7772        .20184E-03   -1.5531    
   5  norm          12.861        4.6630        .11169E-03   -1.4991    
   6  Prefactor     .10000E-03    16.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.285        19.812        .11926E-03   -1.5036    
   8  Prefactor     .10000E-03    4.7982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    120.36        .70084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.4965        .12188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.1223        68.840        .15041E-03   -1.5174    
  13  Prefactor     .10000E-03    10.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0326        6.3134        .29007E-03   -1.5423    
  15  norm          .10000E-03    2.6629        .11822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.746        29.259        .61312E-04   -1.4399    
  17  Prefactor     21.612        8.5229        .86179E-04   -1.4778    
  18  Prefactor     .10000E-03    27.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .48776        .69382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.9587        22.333        .66962E-03   -1.5109    
  21  Normalizat    1.1654        .18926        .28356E-03   -.87679    
  22  Prefactor     1.0483        .13385        .21338E-03   -.91137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94027e-10
Minuit parameter uncertainties:
  1  4.45856
  2  4.46882e-08
  3  0.000743904
  4  1.77736
  5  4.66316
  6  0.00013162
  7  19.8237
  8  4.13828e-06
  9  0.00367464
  10  0.00016297
  11  1.10682e-07
  12  44.352
  13  2.07841e-06
  14  6.31545
  15  1.12994e-05
  16  29.2692
  17  8.52338
  18  7.48394e-05
  19  1.83721e-07
  20  22.3538
  21  0.189371
  22  0.133895
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  1.107e-07  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.048e+00  1.339e-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.165e+00  1.894e-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: 2.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/939279/likelihoodResults_649382401_649641601_4FGL_J1501.0+2238_daily_bin1582.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) = 10419.6979554
delta logL = -0.0031211295136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10419.6948338
delta logL = 4.66541678179e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9831       1.0000          .0000       10.000    
     3 'Normalizat'    1.1654       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0483       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=   10419.69     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      256 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1940        .12359E-01** at limit **
   2  Index         1.5590        5.5307        .50000       -.12865E-06
   3  Normalizat    1.1654        .69077E-02    .28356E-03    .79544E-04
   4  Prefactor     1.0483        .49882E-02    .21338E-03    .10912E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.559
  Normalizat = 1.16541
  Prefactor  = 1.04829
 **********
 **   18 **HESSE 
 **********

 FCN=   10419.69     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.774        .13379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5590        6.6698        .50000       -.75901    
   3  Normalizat    1.1654        .25743E-01    .11342E-04   -.87679    
   4  Prefactor     1.0483        .18589E-01    .85351E-05   -.91137    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05855e-09
Minuit parameter uncertainties:
  1  5.49734e-05
  2  487.22
  3  0.0257432
  4  0.0185896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939279': 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) = 10419.6948286
delta logL = 5.67639290239e-06

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  5.497e-05  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.559e+00  4.872e+02  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.048e+00  1.859e-02  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.165e+00  2.574e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.257 22.636

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/939279/cmap_HighResolution_649382401_649641601_4FGL_J1501.0+2238_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-03', job_status='DONE', photon_flux_upper_limit='2.72e-08', time_completed='2021-09-10 18:10:36.743357', job_id='939279', GAL2='1.05', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631322636.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1582' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:10:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 939279: <4FGL_J1501.0+2238_daily_bin1582> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1582> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 17:56:11 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:56:13 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:56:13 2021
Terminated at Fri Sep 10 18:10:37 2021
Results reported at Fri Sep 10 18:10:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1582 225.257 22.6364 649382401 649641601 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 :                                   840.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

