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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1539
RA = 225.257, Dec = 22.6364
tmin = 638236801, tmax = 638496001
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='939215', job_status='RUN', time_executed='2021-09-10 18:00:16.949103', time_epoch_executed='1631322016.95' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939215

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939215/ft1_4FGL_J1501.0+2238_daily_bin1539.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939215/ft2_4FGL_J1501.0+2238_daily_bin1539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939215/ft1_4FGL_J1501.0+2238_daily_bin1539.fits outfile=/scratch/kocevski/939215/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1539.fits ra=225.257 dec=22.6364 rad=12.0 tmin=638236801.0 tmax=638496001.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.56
user 3.38
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/939215/ft2_4FGL_J1501.0+2238_daily_bin1539.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/939215/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1539.fits evtable="EVENTS" outfile="/scratch/kocevski/939215/ft1_filtered_4FGL_J1501.0+2238_daily_bin1539.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939215/ft1_filtered_4FGL_J1501.0+2238_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/939215/ft2_4FGL_J1501.0+2238_daily_bin1539.fits sctable="SC_DATA" expcube=/scratch/kocevski/939215/ltcube_638236801_638496001_4FGL_J1501.0+2238_daily_bin1539.fits outfile=/scratch/kocevski/939215/expmap_638236801_638496001_4FGL_J1501.0+2238_daily_bin1539.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/939215/ltcube_638236801_638496001_4FGL_J1501.0+2238_daily_bin1539.fits
.....................!
real 191.42
user 186.38
sys 4.69

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939215/ft1_filtered_4FGL_J1501.0+2238_daily_bin1539.fits scfile=/scratch/kocevski/939215/ft2_4FGL_J1501.0+2238_daily_bin1539.fits outfile=/scratch/kocevski/939215/cmap_HighResolution_638236801_638496001_4FGL_J1501.0+2238_daily_bin1539.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/939215/ft1_filtered_4FGL_J1501.0+2238_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/939215/ft2_4FGL_J1501.0+2238_daily_bin1539.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/939215/Model_4FGL_J1501.0+2238_daily_bin1539.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/939215/ft1_filtered_4FGL_J1501.0+2238_daily_bin1539.fits.....................!
real 51.89
user 50.50
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.8307       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2035       1.0000         .10000E-03   10000.    
     4 'norm      '    26.727       1.0000         .10000E-03   10000.    
     5 'norm      '    4.6308       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13224       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12138E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.155       1.0000         .10000E-03   10000.    
    15 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11342E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10347E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7156       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5818       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1856       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6746.524     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1740 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9204        .24537E-06** at limit **
   2  norm          5.8307        3.1123       -.92234E-07    .38801E-05
   3  Prefactor     9.2057        1.5629        .18288E-07   -.37117E-03
   4  norm          26.722        5.1652        .59180E-07    .11187E-03
   5  norm          4.6328        4.2272       -.20152E-06   -.17001E-05
   6  Prefactor     .10000E-03    7.2315       -.17490E-06** at limit **
   7  Prefactor     .10000E-03    8.4280        .13531E-06** at limit **
   8  Prefactor     .10000E-03    5.3862       -.32191E-07** at limit **
   9  Prefactor     .10301E-03    1393.0        .25133E-04** at limit **
  10  Prefactor     .10000E-03    19.603        .39775E-06** at limit **
  11  Prefactor     .10000E-03    3.0979       -.74750E-09** at limit **
  12  norm          .10000E-03    18.122        .10426E-05** at limit **
  13  Prefactor     .10000E-03    47.596       -.26368E-05** at limit **
  14  Prefactor     25.151        1.0550        .15896E-07    .68728E-03
  15  norm          .10000E-03    .56669       -.64089E-07** at limit **
  16  Prefactor     .11465E-03    146.94        .58920E-05** at limit **
  17  Prefactor     .10000E-03    18.156        .47412E-06** at limit **
  18  Prefactor     6.6975        12.828        .76533E-06    .44891E-02
  19  Prefactor     6.5803        3.1573       -.14743E-06   -.61472E-04
  20  Prefactor     .10000E-03    11.093       -.79737E-06** at limit **
  21  Normalizat    1.1855        .22881       -.10212E-06    .12650E-03
  22  Prefactor     .76264        .16100        .14946E-05    .16933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.83068
  Prefactor  = 9.20566
  norm       = 26.7224
  norm       = 4.63278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103009
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100003
  Prefactor  = 25.1509
  norm       = 0.0001
  Prefactor  = 0.000114649
  Prefactor  = 0.000100003
  Prefactor  = 6.69747
  Prefactor  = 6.58034
  Prefactor  = 0.0001
  Normalizat = 1.18547
  Prefactor  = 0.762637
 **********
 **   18 **HESSE 
 **********

 FCN=   6746.524     FROM HESSE     STATUS=OK           406 CALLS     2146 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8307        3.1182        .41580E-02   -1.5225    
   3  Prefactor     9.2057        8.0643        .33027E-02   -1.5101    
   4  norm          26.722        5.3406        .19372E-02   -1.4674    
   5  norm          4.6328        4.2417        .46758E-02   -1.5277    
   6  Prefactor     .10000E-03    7.2296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4345        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3748        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10301E-03    15.205        .11556       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.602        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0833        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    18.202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.151        11.300        .19967E-02   -1.4705    
  15  norm          .10000E-03    .38436        .26005E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11465E-03    19.177        .12464       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1239        .64001E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6975        23.275        .38710E-02   -1.5190    
  19  Prefactor     6.5803        3.1707        .39106E-02   -1.5195    
  20  Prefactor     .10000E-03    11.108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1855        .19775        .59509E-01   -.87053    
  22  Prefactor     .76264        .13536        .43227E-01   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70024e-07
Minuit parameter uncertainties:
  1  1.47343e-05
  2  3.11827
  3  8.06523
  4  5.34067
  5  4.24194
  6  1.66783e-05
  7  1.86835e-05
  8  3.43851e-07
  9  0.0135324
  10  0.000505143
  11  5.76277e-07
  12  0.000459906
  13  0.000766348
  14  11.3007
  15  6.5441e-07
  16  0.0335323
  17  0.000256021
  18  23.3066
  19  3.17074
  20  5.79898e-05
  21  0.197874
  22  0.135415
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  5.763e-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:  7.626e-01  1.354e-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.185e+00  1.979e-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: 4.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/939215/likelihoodResults_638236801_638496001_4FGL_J1501.0+2238_daily_bin1539.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) = 6746.52577465
delta logL = -0.00153233873061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6746.52424231
delta logL = 2.68846633844e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9904       1.0000          .0000       10.000    
     3 'Normalizat'    1.1855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76264       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=   6746.524     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10028E-03    30.168        .14155E-02** at limit **
   2  Index         1.9653        5.1920        .50000        .24667E-04
   3  Normalizat    1.1855        .14747E-01    .26318E-03   -.10410E-04
   4  Prefactor     .76264        .10494E-01    .22707E-03   -.48065E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100281
  Index      = 1.96528
  Normalizat = 1.18547
  Prefactor  = 0.762637
 **********
 **   18 **HESSE 
 **********

 FCN=   6746.524     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10028E-03    135.19        .28311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9653        8.9162        .50000       -.65221    
   3  Normalizat    1.1855        .32507E-01    .10527E-04   -.87053    
   4  Prefactor     .76264        .23132E-01    .90827E-05   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.45563e-09
Minuit parameter uncertainties:
  1  0.0123646
  2  316.879
  3  0.0325073
  4  0.0231321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939215': 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) = 6746.52424211
delta logL = 2.01347575057e-07

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.003e-04  1.236e-02  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.965e+00  3.169e+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:  7.626e-01  2.313e-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.185e+00  3.251e-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/939215/cmap_HighResolution_638236801_638496001_4FGL_J1501.0+2238_daily_bin1539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-03', job_status='DONE', photon_flux_upper_limit='4.38e-08', time_completed='2021-09-10 18:10:07.886256', job_id='939215', GAL2='0.76', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631322607.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1539' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:10:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 939215: <4FGL_J1501.0+2238_daily_bin1539> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1539 225.257 22.6364 638236801 638496001 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 :                                   589.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

