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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1369
RA = 225.257, Dec = 22.6364
tmin = 594172801, tmax = 594432001
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='937943', job_status='RUN', time_executed='2021-09-10 17:54:01.849591', time_epoch_executed='1631321641.85' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937943

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937943/ft1_4FGL_J1501.0+2238_daily_bin1369.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937943/ft2_4FGL_J1501.0+2238_daily_bin1369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937943/ft1_4FGL_J1501.0+2238_daily_bin1369.fits outfile=/scratch/kocevski/937943/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1369.fits ra=225.257 dec=22.6364 rad=12.0 tmin=594172801.0 tmax=594432001.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 4.12
user 3.87
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937943/ft2_4FGL_J1501.0+2238_daily_bin1369.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/937943/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1369.fits evtable="EVENTS" outfile="/scratch/kocevski/937943/ft1_filtered_4FGL_J1501.0+2238_daily_bin1369.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.51
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937943/ft1_filtered_4FGL_J1501.0+2238_daily_bin1369.fits" evtable="EVENTS" scfile=/scratch/kocevski/937943/ft2_4FGL_J1501.0+2238_daily_bin1369.fits sctable="SC_DATA" outfile=/scratch/kocevski/937943/ltcube_594172801_594432001_4FGL_J1501.0+2238_daily_bin1369.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/937943/ft2_4FGL_J1501.0+2238_daily_bin1369.fits
.....................!
real 11.77
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937943/ft1_filtered_4FGL_J1501.0+2238_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/937943/ft2_4FGL_J1501.0+2238_daily_bin1369.fits sctable="SC_DATA" expcube=/scratch/kocevski/937943/ltcube_594172801_594432001_4FGL_J1501.0+2238_daily_bin1369.fits outfile=/scratch/kocevski/937943/expmap_594172801_594432001_4FGL_J1501.0+2238_daily_bin1369.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/937943/ltcube_594172801_594432001_4FGL_J1501.0+2238_daily_bin1369.fits
.....................!
real 192.39
user 186.69
sys 5.25

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/937943/ft1_filtered_4FGL_J1501.0+2238_daily_bin1369.fits scfile=/scratch/kocevski/937943/ft2_4FGL_J1501.0+2238_daily_bin1369.fits outfile=/scratch/kocevski/937943/cmap_594172801_594432001_4FGL_J1501.0+2238_daily_bin1369.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=225.257 yref=22.6364 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937943/ft1_filtered_4FGL_J1501.0+2238_daily_bin1369.fits scfile=/scratch/kocevski/937943/ft2_4FGL_J1501.0+2238_daily_bin1369.fits outfile=/scratch/kocevski/937943/cmap_HighResolution_594172801_594432001_4FGL_J1501.0+2238_daily_bin1369.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/937943/ft1_filtered_4FGL_J1501.0+2238_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/937943/ft2_4FGL_J1501.0+2238_daily_bin1369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/937943/Model_4FGL_J1501.0+2238_daily_bin1369.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/937943/ft1_filtered_4FGL_J1501.0+2238_daily_bin1369.fits....................!
real 53.61
user 52.32
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4702       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7013       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14878E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15492       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11170E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5795       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.530       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.254       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.657       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2691       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99865       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=   6869.002     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2374 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7929        .38836E-07** at limit **
   2  norm          6.0179        3.1220        .29034E-07   -.17431E-04
   3  Prefactor     .10000E-03    6.5595        .79111E-07** at limit **
   4  norm          2.4698        2.8892        .29591E-06    .24247E-03
   5  norm          4.7024        6.0029        .35475E-06   -.36654E-04
   6  Prefactor     .10000E-03    15.452        .33233E-06** at limit **
   7  Prefactor     .10000E-03    23.654       -.14501E-05** at limit **
   8  Prefactor     .10000E-03    5.6150       -.48036E-08** at limit **
   9  Prefactor     .10001E-03    88.024       -.23664E-05** at limit **
  10  Prefactor     .10000E-03    20.100       -.33398E-06** at limit **
  11  Prefactor     .90981E-01    6.6833        .13604E-05   -.33830E-03
  12  norm          .10001E-03    28.564        .15694E-05** at limit **
  13  Prefactor     .10000E-03    15.031       -.48278E-06** at limit **
  14  Prefactor     .10005E-03    10.355        .36965E-05** at limit **
  15  norm          1.5796        1.2187       -.14790E-06    .99702E-04
  16  Prefactor     .10000E-03    26.535       -.37680E-06** at limit **
  17  Prefactor     10.531        8.5659        .18750E-05    .83743E-03
  18  Prefactor     33.253        30.517       -.69249E-06   -.59193E-04
  19  Prefactor     .10000E-03    .58124       -.59551E-08** at limit **
  20  Prefactor     18.654        30.341       -.31184E-06   -.11958E-03
  21  Normalizat    1.2689        .19648       -.58904E-06   -.39276E-03
  22  Prefactor     .99879        .13871       -.23383E-06   -.51843E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.01792
  Prefactor  = 0.0001
  norm       = 2.46976
  norm       = 4.70244
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0909808
  norm       = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.000100047
  norm       = 1.57956
  Prefactor  = 0.0001
  Prefactor  = 10.5306
  Prefactor  = 33.2535
  Prefactor  = 0.0001
  Prefactor  = 18.6541
  Normalizat = 1.26894
  Prefactor  = 0.998789
 **********
 **   18 **HESSE 
 **********

 FCN=   6869.002     FROM HESSE     STATUS=OK           344 CALLS     2718 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8095        .17720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0179        3.1211        .10200E-03   -1.5217    
   3  Prefactor     .10000E-03    6.6877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4698        2.8899        .14698E-03   -1.5394    
   5  norm          4.7024        6.0250        .18559E-03   -1.5274    
   6  Prefactor     .10000E-03    15.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    90.869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .90981E-01    6.8671        .64501E-01   -1.5648    
  12  norm          .10001E-03    29.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    18.049        .34916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5796        1.2121        .72343E-04   -1.5457    
  16  Prefactor     .10000E-03    26.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.531        9.0459        .61735E-03   -1.5059    
  18  Prefactor     33.253        30.579        .69488E-04   -1.4554    
  19  Prefactor     .10000E-03    .58320        .61702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.654        30.448        .92726E-04   -1.4844    
  21  Normalizat    1.2689        .23143        .27914E-03   -.84498    
  22  Prefactor     .99879        .16372        .21986E-03   -.92770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02912e-09
Minuit parameter uncertainties:
  1  5.97258e-06
  2  3.12119
  3  1.34187e-05
  4  2.89004
  5  6.02573
  6  0.000121829
  7  0.000675401
  8  4.09343e-07
  9  0.001757
  10  0.000138692
  11  1.58017
  12  0.000836015
  13  0.000188698
  14  0.0018485
  15  1.21208
  16  0.000177754
  17  9.0471
  18  30.5933
  19  7.43532e-07
  20  30.4732
  21  0.231616
  22  0.163803
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  9.098e-02  1.580e+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:  9.988e-01  1.638e-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.269e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937943/likelihoodResults_594172801_594432001_4FGL_J1501.0+2238_daily_bin1369.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) = 6869.00225537
delta logL = 1.92707830138e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6869.00197348
delta logL = 0.000283814867544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91241E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8210       1.0000          .0000       10.000    
     3 'Normalizat'    1.2690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99879       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=   6869.002     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      246 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24351        8.6206        .94694E-01    .33190E-03
   2  Index         1.8182        1.5989        .50000       -.33052E-05
   3  Normalizat    1.2692        .66432E-02    .63103E-01   -.31409E-04
   4  Prefactor     .99841        .47319E-02    .46252E-01   -.16486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.243508
  Index      = 1.81823
  Normalizat = 1.26921
  Prefactor  = 0.99841
 **********
 **   18 **HESSE 
 **********

 FCN=   6869.002     FROM HESSE     STATUS=OK            35 CALLS      281 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24351        60.775        .36626E-02   -1.5609    
   2  Index         1.8182        5.6766        .26656E-01   -.68976    
   3  Normalizat    1.2692        .22788        .27912E-03   -.84490    
   4  Prefactor     .99841        .16362        .21990E-03   -.92783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41482e-08
Minuit parameter uncertainties:
  1  7.70025
  2  5.07469
  3  0.228064
  4  0.163702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937943': 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) = 6869.00173197
delta logL = 0.000525322191606

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.435e-01  7.700e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.818e+00  5.075e+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.984e-01  1.637e-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.269e+00  2.281e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/937943/cmap_HighResolution_594172801_594432001_4FGL_J1501.0+2238_daily_bin1369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-03', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2021-09-10 18:04:30.953255', job_id='937943', GAL2='1.00', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631322270.95', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.25e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1369' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:04:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 937943: <4FGL_J1501.0+2238_daily_bin1369> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1369> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 17:51:28 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:51:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 17:51:29 2021
Terminated at Fri Sep 10 18:04:31 2021
Results reported at Fri Sep 10 18:04:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1369 225.257 22.6364 594172801 594432001 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 :                                   622.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

